function views_custom_cache_plugin_cache::get_time in Views custom cache 7
Returns cache time defined by user.
3 calls to views_custom_cache_plugin_cache::get_time()
- views_custom_cache_plugin_cache::cache_expire in views/
views_custom_cache_plugin_cache.inc - Implements views_plugin_cache#cache_expire().
- views_custom_cache_plugin_cache::cache_set_expire in views/
views_custom_cache_plugin_cache.inc - Implements views_plugin_cache#cache_set_expire().
- views_custom_cache_plugin_cache::summary_title in views/
views_custom_cache_plugin_cache.inc - Implements views_plugin_cache#summary_title().
File
- views/
views_custom_cache_plugin_cache.inc, line 132 - Views custom cache first argument plugin.
Class
- views_custom_cache_plugin_cache
- Views caching given view's first argument.
Code
function get_time() {
$time = $this->options['cache_time'] == 'custom' ? $this->options['cache_time_custom'] : $this->options['cache_time'];
return $time;
}