function CachePluginBase::cacheExpire
Same name and namespace in other branches
- 11.x core/modules/views/src/Plugin/views/cache/CachePluginBase.php \Drupal\views\Plugin\views\cache\CachePluginBase::cacheExpire()
- 10 core/modules/views/src/Plugin/views/cache/CachePluginBase.php \Drupal\views\Plugin\views\cache\CachePluginBase::cacheExpire()
- 9 core/modules/views/src/Plugin/views/cache/CachePluginBase.php \Drupal\views\Plugin\views\cache\CachePluginBase::cacheExpire()
- 8.9.x 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
string $type: The cache type, either 'query', 'result'.
Deprecated
in drupal:11.4.0 and is removed from drupal:13.0.0. No replacement is provided.
See also
https://www.drupal.org/node/3576855
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 86
Class
- CachePluginBase
- The base plugin to handle caching.
Namespace
Drupal\views\Plugin\views\cacheCode
protected function cacheExpire($type) {
@trigger_error(__METHOD__ . '() is deprecated in drupal:11.4.0 and is removed from drupal:13.0.0. There is no replacement. See https://www.drupal.org/node/3576855', E_USER_DEPRECATED);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.