1 views_plugin_cache.inc views_plugin_cache::cache_set_expire($type)

Determine expiration time in the cache table of the cache type or CACHE_PERMANENT if item shouldn't be removed automatically from cache.

Plugins must override this to implement expiration in the cache table.

Parameters

$type: The cache type, either 'query', 'result' or 'output'.

File

core/modules/views/plugins/views_plugin_cache.inc, line 75
Definition of views_plugin_cache.

Class

views_plugin_cache
The base plugin to handle caching.

Code

function cache_set_expire($type) {
  return CACHE_PERMANENT;
}