hook_views_invalidate_cache()
Allow modules to respond to the invalidation of the Views cache.
This hook will fire whenever a view is enabled, disabled, created, updated, or deleted.
See also
Related topics
- Hooks
- Define functions that alter the behavior of Drupal core.
File
- core/modules/views/views.api.php, line 955
- Describes hooks and plugins provided by the Views module.
Code
function hook_views_invalidate_cache() { \Drupal\Core\Cache\Cache::invalidateTags(array('views')); }
Please login to continue.