function DrupalCacheInterface::clear

7.x cache.inc DrupalCacheInterface::clear($cid = NULL, $wildcard = FALSE)

Expires data from the cache.

If called without arguments, expirable entries will be cleared from the cache_page and cache_block bins.

Parameters

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

$wildcard: If set to TRUE, the $cid is treated as a substring to match rather than a complete ID. The match is a right hand match. If '*' is given as $cid, the bin $bin will be emptied.

1 method overrides DrupalCacheInterface::clear()

File

drupal/includes/cache.inc, line 290
Functions and interfaces for cache handling.

Class

DrupalCacheInterface
Defines an interface for cache implementations.

Code

function clear($cid = NULL, $wildcard = FALSE);