function views_plugin_cache_time::cache_set_expire

Overrides views_plugin_cache::cache_set_expire

File

plugins/views_plugin_cache_time.inc, line 123

Class

views_plugin_cache_time
Simple caching of query results for Views displays.

Code

public function cache_set_expire($type) {
    $lifespan = $this->get_lifespan($type);
    if ($lifespan) {
        return time() + $lifespan;
    }
    else {
        return CACHE_PERMANENT;
    }
}