protected function CachePluginBase::cacheSetMaxAge in Drupal 10
Same name and namespace in other branches
- 8 core/modules/views/src/Plugin/views/cache/CachePluginBase.php \Drupal\views\Plugin\views\cache\CachePluginBase::cacheSetMaxAge()
 - 9 core/modules/views/src/Plugin/views/cache/CachePluginBase.php \Drupal\views\Plugin\views\cache\CachePluginBase::cacheSetMaxAge()
 
Determine cache expiration time.
Plugins must override this to implement expiration in the cache table. The default is CACHE_PERMANENT, indicating that the item will not be removed automatically from cache.
Parameters
string $type: The cache type.
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 cache expiration time.
 
File
- core/
modules/ views/ src/ Plugin/ views/ cache/ CachePluginBase.php, line 93  
Class
- CachePluginBase
 - The base plugin to handle caching.
 
Namespace
Drupal\views\Plugin\views\cacheCode
protected function cacheSetMaxAge($type) {
  return Cache::PERMANENT;
}