function hook_metatag_cache_set_expire_alter in Metatag 7
Allow modules to overide the expiration of metatag caches.
By default Metatag caches everything as CACHE_PERMANENT, this alter allows to change that.
Parameters
int $expire: The expire value to change.
string $cid: The cid about to be cached.
array $data: The data to be cached.
1 invocation of hook_metatag_cache_set_expire_alter()
- metatag_cache_set in ./
metatag.module - Wrapper for cache_set.
File
- ./
metatag.api.php, line 492 - API documentation for the Metatag module.
Code
function hook_metatag_cache_set_expire_alter(&$expire, $cid, array $data) {
$expire = CACHE_TEMPORARY;
}