function views_plugin_cache_time::cache_expire
Overrides views_plugin_cache::cache_expire
File
-
plugins/
views_plugin_cache_time.inc, line 109
Class
- views_plugin_cache_time
- Simple caching of query results for Views displays.
Code
public function cache_expire($type) {
$lifespan = $this->get_lifespan($type);
if ($lifespan) {
$cutoff = REQUEST_TIME - $lifespan;
return $cutoff;
}
else {
return FALSE;
}
}