You are here

function purge_urls in Purge 7.2

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

Purges urls from reverse proxy caches

Parameters

$urls: Array of urls to remove from the proxy cache using the http purge method.

1 call to purge_urls()
purge_expire_cache in ./purge.module
Implements hook_expire_cache().

File

includes/purge.inc, line 32
Contains the main purging functionality and error handling.

Code

function purge_urls($urls) {
  $bundle = new PurgePurgerBundleProcess();
  $bundle->purgeables['urls'] = $urls;
  $bundle
    ->process();
}