You are here

protected static function ExpireAPI::executeExternalExpiration in Cache Expiration 7.2

Executes hook_cache_expire().

It allows other modules to implement custom login for cache expiration.

Parameters

$urls: List of absolute urls that should be flushed.

$wildcards: List of paths and its wildcard flushes.

$object_type: Name of object type ('node', 'comment', 'user', etc).

$object: Object (node, comment, user, etc) for which expiration is executes.

1 call to ExpireAPI::executeExternalExpiration()
ExpireAPI::executeExpiration in includes/expire.api.inc
Executes internal or external cache expiration.

File

includes/expire.api.inc, line 166
Provides internal API for page cache flushes.

Class

ExpireAPI
@file Provides internal API for page cache flushes.

Code

protected static function executeExternalExpiration($urls, $wildcards, $object_type, $object) {
  $modules = module_implements('expire_cache');
  foreach ($modules as $module) {
    module_invoke($module, 'expire_cache', $urls, $wildcards, $object_type, $object);
  }
}