function views_plugin_cache_time::cache_set_expire
Same name in other branches
- 7.x-3.x plugins/views_plugin_cache_time.inc \views_plugin_cache_time::cache_set_expire()
Overrides views_plugin_cache::cache_set_expire
File
-
plugins/
views_plugin_cache_time.inc, line 50
Class
- views_plugin_cache_time
- Simple caching of query results for Views displays.
Code
function cache_set_expire($type) {
if ($lifespan = $this->options[$type . '_lifespan']) {
return time() + $lifespan;
}
else {
return CACHE_PERMANENT;
}
}