public function QueryPluginBase::getCacheMaxAge in Drupal 9
Same name and namespace in other branches
- 8 core/modules/views/src/Plugin/views/query/QueryPluginBase.php \Drupal\views\Plugin\views\query\QueryPluginBase::getCacheMaxAge()
The maximum age for which this object may be cached.
Return value
int The maximum time in seconds that this object may be cached.
Overrides CacheableDependencyInterface::getCacheMaxAge
1 call to QueryPluginBase::getCacheMaxAge()
- Sql::getCacheMaxAge in core/
modules/ views/ src/ Plugin/ views/ query/ Sql.php - The maximum age for which this object may be cached.
1 method overrides QueryPluginBase::getCacheMaxAge()
- Sql::getCacheMaxAge in core/
modules/ views/ src/ Plugin/ views/ query/ Sql.php - The maximum age for which this object may be cached.
File
- core/
modules/ views/ src/ Plugin/ views/ query/ QueryPluginBase.php, line 331
Class
- QueryPluginBase
- Base plugin class for Views queries.
Namespace
Drupal\views\Plugin\views\queryCode
public function getCacheMaxAge() {
return Cache::PERMANENT;
}