function views_invalidate_cache

Invalidate the views cache, forcing a rebuild on the next grab of table data.

5 calls to views_invalidate_cache()

File

drupal/core/modules/views/views.module, line 957
Primarily Drupal hooks and global API functions to manipulate views.

Code

function views_invalidate_cache() {

  // Clear the views cache.
  cache('views_info')
    ->deleteAll();

  // Clear the page and block cache.
  cache_delete_tags(array(
    'content' => TRUE,
  ));

  // Set the menu as needed to be rebuilt.
  state()
    ->set('menu_rebuild_needed', TRUE);

  // Allow modules to respond to the Views cache being cleared.
  module_invoke_all('views_invalidate_cache');
}