Views cache plugins

Same name in other branches
  1. 9 core/modules/views/src/Plugin/views/cache/CachePluginBase.php \Drupal\views\Plugin\views\cache\views_cache_plugins
  2. 8.9.x core/modules/views/src/Plugin/views/cache/CachePluginBase.php \Drupal\views\Plugin\views\cache\views_cache_plugins
  3. 11.x core/modules/views/src/Plugin/views/cache/CachePluginBase.php \Drupal\views\Plugin\views\cache\views_cache_plugins

Plugins to handle Views caches.

Cache plugins control how caching is done in Views.

Cache plugins extend \Drupal\views\Plugin\views\cache\CachePluginBase. They must be annotated with \Drupal\views\Annotation\ViewsCache annotation, and must be in namespace directory Plugin\views\cache.

See also

Plugin API

Parent topics

File

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

Classes

Title Sort descending File name Summary
CachePluginBase core/modules/views/src/Plugin/views/cache/CachePluginBase.php The base plugin to handle caching.
None core/modules/views/src/Plugin/views/cache/None.php Caching plugin that provides no caching at all.
Tag core/modules/views/src/Plugin/views/cache/Tag.php Simple caching of query results for Views displays.
Time core/modules/views/src/Plugin/views/cache/Time.php Simple caching of query results for Views displays.
ViewsCache core/modules/views/src/Attribute/ViewsCache.php Defines a views cache plugins type attribute for plugin discovery.
ViewsCache core/modules/views/src/Annotation/ViewsCache.php Defines a Plugin annotation object for views cache plugins.

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