function QueryPluginBase::getCacheMaxAge

Same name in other branches
  1. 9 core/modules/views/src/Plugin/views/query/QueryPluginBase.php \Drupal\views\Plugin\views\query\QueryPluginBase::getCacheMaxAge()
  2. 8.9.x core/modules/views/src/Plugin/views/query/QueryPluginBase.php \Drupal\views\Plugin\views\query\QueryPluginBase::getCacheMaxAge()
  3. 10 core/modules/views/src/Plugin/views/query/QueryPluginBase.php \Drupal\views\Plugin\views\query\QueryPluginBase::getCacheMaxAge()

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 341

Class

QueryPluginBase
Base plugin class for Views queries.

Namespace

Drupal\views\Plugin\views\query

Code

public function getCacheMaxAge() {
    return Cache::PERMANENT;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.