function drush_cache_clear_all

8.0.x cache.inc drush_cache_clear_all($cid = NULL, $bin = 'default', $wildcard = FALSE)
6.x cache.inc drush_cache_clear_all($cid = NULL, $bin = 'default', $wildcard = FALSE)
7.x cache.inc drush_cache_clear_all($cid = NULL, $bin = 'default', $wildcard = FALSE)
5.x cache.inc drush_cache_clear_all($cid = NULL, $bin = 'default', $wildcard = FALSE)
master cache.inc drush_cache_clear_all($cid = NULL, $bin = 'default', $wildcard = FALSE)

Expire data from the cache.

If called without arguments, expirable entries will be cleared from all known cache bins.

Parameters

string $cid: If set, the cache ID to delete. Otherwise, all cache entries that can expire are deleted.

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

bool $wildcard: If $wildcard is TRUE, cache IDs starting with $cid are deleted in addition to the exact cache ID specified by $cid. If $wildcard is TRUE and $cid is '*' then the entire bin $bin is emptied.

3 calls to drush_cache_clear_all()
drush_cache_clear_drush in commands/core/cache.drush.inc
Clear caches internal to drush core.
drush_complete_cache_clear in includes/drush.inc
Clears completion caches.
pm_drush_pm_download_destination_alter in commands/pm/download.pm.inc
Implementation of hook_drush_pm_download_destination_alter().

File

includes/cache.inc, line 139
Drush cache API

Code

function drush_cache_clear_all($cid = NULL, $bin = 'default', $wildcard = FALSE) {
  if (!isset($cid) && !isset($bin)) {
    foreach (drush_cache_get_bins() as $bin) {
      _drush_cache_get_object($bin)->clear();
    }
    return;
  }
  return _drush_cache_get_object($bin)->clear($cid, $wildcard);
}