You are here

function purge_expire_cache in Purge 7.2

Same name and namespace in other branches
  1. 6 purge.module \purge_expire_cache()
  2. 7 purge.module \purge_expire_cache()

Implements hook_expire_cache().

Parameters

array $expire_urls: Takes an array from expire.module and issues purges. This can be either relative of fully qualified URLs.

File

./purge.module, line 16
Purge clears url's from reverse proxy caches like Varnish and Squid by issuing HTTP PURGE requests.

Code

function purge_expire_cache($expire_urls) {
  module_load_include('inc', 'purge', 'includes/purge');

  // Just pass on to the purge_urls function which will do all the magic.
  $purge_requests = purge_urls($expire_urls);
}