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.

CommentFileSizeAuthor
expire-api-hook_expire_cache-fatal.patch402 bytesGrayside
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

  • Commit caa956e on 7.x-2.x authored by Grayside, committed by Spleshka:
    Issue #2204465 by Grayside: Fatal error in hook_expire_cache() example
    
Spleshka’s picture

Status: Needs review » Fixed

Fixed.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.