function CachePluginBase::cacheSetMaxAge
Same name in other branches
- 9 core/modules/views/src/Plugin/views/cache/CachePluginBase.php \Drupal\views\Plugin\views\cache\CachePluginBase::cacheSetMaxAge()
- 10 core/modules/views/src/Plugin/views/cache/CachePluginBase.php \Drupal\views\Plugin\views\cache\CachePluginBase::cacheSetMaxAge()
- 11.x core/modules/views/src/Plugin/views/cache/CachePluginBase.php \Drupal\views\Plugin\views\cache\CachePluginBase::cacheSetMaxAge()
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'.
1 call to CachePluginBase::cacheSetMaxAge()
- CachePluginBase::cacheSet in core/
modules/ views/ src/ Plugin/ views/ cache/ CachePluginBase.php - Save data to the cache.
1 method overrides CachePluginBase::cacheSetMaxAge()
- Time::cacheSetMaxAge in core/
modules/ views/ src/ Plugin/ views/ cache/ Time.php - Determine expiration time in the cache table of the cache type or CACHE_PERMANENT if item shouldn't be removed automatically from cache.
File
-
core/
modules/ views/ src/ Plugin/ views/ cache/ CachePluginBase.php, line 92
Class
- CachePluginBase
- The base plugin to handle caching.
Namespace
Drupal\views\Plugin\views\cacheCode
protected function cacheSetMaxAge($type) {
return Cache::PERMANENT;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.