function views_plugin_cache_time::get_lifespan
3.x views_plugin_cache_time.inc | views_plugin_cache_time::get_lifespan($type) |
3 calls to views_plugin_cache_time::get_lifespan()
- views_plugin_cache_time::cache_expire in plugins/
views_plugin_cache_time.inc - Determine the expiration time of the cache type, or NULL if no expire.
- views_plugin_cache_time::cache_set_expire in plugins/
views_plugin_cache_time.inc - Determine expiration time in the cache table of the cache type or CACHE_PERMANENT if item shouldn't be removed automatically from cache.
- views_plugin_cache_time::summary_title in plugins/
views_plugin_cache_time.inc - Return a string to display as the clickable title for the access control.
File
- plugins/
views_plugin_cache_time.inc, line 85 - Definition of views_plugin_cache_time.
Class
- views_plugin_cache_time
- Simple caching of query results for Views displays.
Code
function get_lifespan($type) {
$lifespan = $this->options[$type . '_lifespan'] == 'custom' ? $this->options[$type . '_lifespan_custom'] : $this->options[$type . '_lifespan'];
return $lifespan;
}