function CachePluginBase::cacheExpire

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

Determine the expiration time of the cache type, or NULL if no expire.

Plugins must override this to implement expiration.

Parameters

$type: The cache type, either 'query', 'result'.

1 call to CachePluginBase::cacheExpire()
CachePluginBase::cacheGet in core/modules/views/src/Plugin/views/cache/CachePluginBase.php
Retrieve data from the cache.
2 methods override CachePluginBase::cacheExpire()
Tag::cacheExpire in core/modules/views/src/Plugin/views/cache/Tag.php
Determine the expiration time of the cache type, or NULL if no expire.
Time::cacheExpire in core/modules/views/src/Plugin/views/cache/Time.php
Determine the expiration time of the cache type, or NULL if no expire.

File

core/modules/views/src/Plugin/views/cache/CachePluginBase.php, line 81

Class

CachePluginBase
The base plugin to handle caching.

Namespace

Drupal\views\Plugin\views\cache

Code

protected function cacheExpire($type) {
}

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