Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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.