You are here

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

Save data to the cache.

A plugin should override this to provide specialized caching behavior.

Overrides views_plugin_cache::cache_set

File

plugins/views_plugin_cache_time.inc, line 136
Definition of views_plugin_cache_time.

Class

views_plugin_cache_time
Simple caching of query results for Views displays.

Code

public function cache_set($type) {
  $lifespan = $this
    ->get_lifespan($type);
  if ($lifespan >= 0) {
    parent::cache_set($type);
  }
}