cache_clear_all

5 cache.inc cache_clear_all($cid = NULL, $table = NULL, $wildcard = FALSE)
6 cache-install.inc cache_clear_all($cid = NULL, $table = NULL, $wildcard = FALSE)
6 cache.inc cache_clear_all($cid = NULL, $table = NULL, $wildcard = FALSE)
7 cache.inc cache_clear_all($cid = NULL, $bin = NULL, $wildcard = FALSE)
8 cache.inc cache_clear_all()

Expires data from the block and page caches.

29 calls to cache_clear_all()

1 string reference to 'cache_clear_all'

File

core/includes/cache.inc, line 74
Functions and interfaces for cache handling.

Code

function cache_clear_all() {
  // @todo: remove before release.
  if (func_get_args()) {
    throw new Exception(t('cache_clear_all() no longer takes arguments, use cache() instead.'));
  }
  // Clear the block cache first, so stale data will
  // not end up in the page cache.
  if (module_exists('block')) {
    cache('block')->expire();
  }
  cache('page')->expire();
}
Login or register to post comments