The example for hook_expire_cache() in expire.api.php assumes purge.inc is loaded to provide the purge_urls() function. This is not always the case, and can result in a fatal error if used without making sure the file is loaded.
The attached patch simply drops that change in place as a pointer for anyone lifting this example as a proven means of interacting with Expire.
| Comment | File | Size | Author |
|---|---|---|---|
| expire-api-hook_expire_cache-fatal.patch | 402 bytes | Grayside |
Comments
Comment #2
spleshkaFixed.