function cache_clear_all

cis7 cache_clear_all($cid = NULL, $bin = NULL, $wildcard = FALSE)
cle7 cache_clear_all($cid = NULL, $bin = NULL, $wildcard = FALSE)
elmsmedia7 cache_clear_all($cid = NULL, $bin = NULL, $wildcard = FALSE)
icor7 cache_clear_all($cid = NULL, $bin = NULL, $wildcard = FALSE)
meedjum_blog7 cache_clear_all($cid = NULL, $bin = NULL, $wildcard = FALSE)
mooc7 cache_clear_all($cid = NULL, $bin = NULL, $wildcard = FALSE)

Expires data from the cache.

If called with the arguments $cid and $bin set to NULL or omitted, then expirable entries will be cleared from the cache_page and cache_block bins, and the $wildcard argument is ignored.


$cid: If set, the cache ID or an array of cache IDs. Otherwise, all cache entries that can expire are deleted. The $wildcard argument will be ignored if set to NULL.

$bin: If set, the cache bin to delete from. Mandatory argument if $cid is set.

$wildcard: If TRUE, the $cid argument must contain a string value and cache IDs starting with $cid are deleted in addition to the exact cache ID specified by $cid. If $wildcard is TRUE and $cid is '*', the entire cache is emptied.

185 calls to cache_clear_all()
AccessibilityTestController::save in sites/all/modules/ulmus/accessibility/accessibility.module
addanother_update_7002 in sites/all/modules/ulmus/addanother/addanother.install
Clears site-wide menu cache as our callback and access arguments have changed.
admin_menu_flush_caches in sites/all/modules/ulmus/admin_menu/admin_menu.module
Implements hook_flush_caches().
admin_menu_toggle_modules in sites/all/modules/ulmus/admin_menu/
Menu callback; Enable/disable developer modules.
advagg_admin_settings_form_submit in sites/all/modules/ulmus/advagg/
Clear out the advagg cache bin when the save configuration button is pressed.

... See full list

2 string references to 'cache_clear_all'
menu_cache_clear in includes/
Clears the cached cached data for a single named menu.
_menu_clear_page_cache in includes/
Clears the page and block caches at most twice per page load.


includes/, line 155
Functions and interfaces for cache handling.


function cache_clear_all($cid = NULL, $bin = NULL, $wildcard = FALSE) {
  if (!isset($cid) && !isset($bin)) {
    // Clear the block cache first, so stale data will
    // not end up in the page cache.
    if (module_exists('block')) {
      cache_clear_all(NULL, 'cache_block');
    cache_clear_all(NULL, 'cache_page');
  return _cache_get_object($bin)->clear($cid, $wildcard);



Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/ in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/
The website encountered an unexpected error. Please try again later.