function _blockcache_alter_check_expire in Block Cache Alter 7
Same name and namespace in other branches
- 6 blockcache_alter.module \_blockcache_alter_check_expire()
Helper function to check if this block should be refreshed or not.
Parameters
stdClass $cache A complete cache object.:
int $time The current timestamp.:
Return value
FALSE or TRUE
File
- ./
blockcache_alter.module, line 338 - Block cache alter module.
Code
function _blockcache_alter_check_expire($cache, $time) {
if ($cache->expire == CACHE_PERMANENT) {
return TRUE;
}
if ($cache->expire > $time) {
return TRUE;
}
return FALSE;
}