You are here

Views cache plugins in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/views/src/Plugin/views/cache/CachePluginBase.php \Drupal\views\Plugin\views\cache\views_cache_plugins
  2. 9 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

Namesort descending Location Description
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/Annotation/ViewsCache.php Defines a Plugin annotation object for views cache plugins.