1 views.api.php | hook_views_invalidate_cache() |
Allow modules to respond to the Views cache being invalidated.
This hook should fire whenever a view is enabled, disabled, created, updated, or deleted.
See also
Related topics
File
- core/
modules/ views/ views.api.php, line 967 - Describe hooks provided by the Views module.
Code
function hook_views_invalidate_cache() {
cache('my_module')->deletePrefix('views:');
}