function views_invalidate_cache

cis7 views.module views_invalidate_cache()
cle7 views.module views_invalidate_cache()
elmsmedia7 views.module views_invalidate_cache()
icor7 views.module views_invalidate_cache()
meedjum_blog7 views.module views_invalidate_cache()
mooc7 views.module views_invalidate_cache()

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

13 calls to views_invalidate_cache()
DataTable::addField in sites/all/modules/local_contrib/data/includes/DataTable.inc
Add a field.
DataTable::adopt in sites/all/modules/local_contrib/data/includes/DataTable.inc
Let Data manage a table that already exists in the database.
DataTable::clearCaches in sites/all/modules/local_contrib/data/includes/DataTable.inc
Clear relevant caches. Call after operations that create, delete or modify tables.
DataTable::create in sites/all/modules/local_contrib/data/includes/DataTable.inc
Create a table.
data_search_admin_form_submit in sites/all/modules/local_contrib/data/data_search/data_search.admin.inc
Submit handler for search form.

... See full list

3 string references to 'views_invalidate_cache'
DataTable::addField in sites/all/modules/local_contrib/data/includes/DataTable.inc
Add a field.
nodequeue_save in sites/all/modules/local_contrib/nodequeue/nodequeue.module
Save a nodequeue. This does not save subqueues; those must be added separately.
views_drush_cache_clear in sites/all/modules/ulmus/views/drush/views.drush.inc
Adds a cache clear option for views.

File

sites/all/modules/ulmus/views/views.module, line 923
Primarily Drupal hooks and global API functions to manipulate views.

Code

function views_invalidate_cache() {
  // Clear the views cache.
  cache_clear_all('*', 'cache_views', TRUE);

  // Clear the page and block cache.
  cache_clear_all();

  // Set the menu as needed to be rebuilt.
  variable_set('menu_rebuild_needed', TRUE);

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

Error

×

Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/api.elmsln.org/includes/common.inc:2791) in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/api.elmsln.org/sites/all/modules/apc/drupal_apc_cache.inc).
The website encountered an unexpected error. Please try again later.