public function views_plugin_cache_time::cache_get in Views (for Drupal 7) 7.3
Retrieve data from the cache.
A plugin should override this to provide specialized caching behavior.
Overrides views_plugin_cache::cache_get
File
- plugins/
views_plugin_cache_time.inc, line 146 - Definition of views_plugin_cache_time.
Class
- views_plugin_cache_time
- Simple caching of query results for Views displays.
Code
public function cache_get($type) {
$lifespan = $this
->get_lifespan($type);
if ($lifespan >= 0) {
return parent::cache_get($type);
}
else {
return FALSE;
}
}