function CachePluginBase::getDefaultCacheMaxAge
Same name and namespace in other branches
- 11.x core/modules/views/src/Plugin/views/cache/CachePluginBase.php \Drupal\views\Plugin\views\cache\CachePluginBase::getDefaultCacheMaxAge()
- 10 core/modules/views/src/Plugin/views/cache/CachePluginBase.php \Drupal\views\Plugin\views\cache\CachePluginBase::getDefaultCacheMaxAge()
Returns the default cache max age.
File
-
core/
modules/ views/ src/ Plugin/ views/ cache/ CachePluginBase.php, line 269
Class
- CachePluginBase
- The base plugin to handle caching.
Namespace
Drupal\views\Plugin\views\cacheCode
protected function getDefaultCacheMaxAge() {
// The default cache backend is not caching anything.
return 0;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.