You are here

public function views_plugin_cache_time::get_lifespan in Views (for Drupal 7) 7.3

5 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_get in plugins/views_plugin_cache_time.inc
Retrieve data from the cache.
views_plugin_cache_time::cache_set in plugins/views_plugin_cache_time.inc
Save data to the cache.
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.
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 101
Definition of views_plugin_cache_time.

Class

views_plugin_cache_time
Simple caching of query results for Views displays.

Code

public function get_lifespan($type) {
  $lifespan = $this->options[$type . '_lifespan'] == 'custom' ? $this->options[$type . '_lifespan_custom'] : $this->options[$type . '_lifespan'];
  return $lifespan;
}