public function CacheObjectAPIWrapper::clear in Cache Object API 7
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.
Overrides DrupalCacheInterface::clear
File
- ./cacheobject.inc, line 130 
- Provides Cache Object API wrapper class.
Class
- CacheObjectAPIWrapper
- Provides a cache class exposing hooks operating on objects before they are stored to and after they were received from the cache.
Code
public function clear($cid = NULL, $wildcard = FALSE) {
  $clear = module_invoke_all('cacheobject_clear', $cid, $wildcard, $this->bin);
  if (!$this
    ->checkResult($clear)) {
    return;
  }
  $this->delegate
    ->clear($cid, $wildcard);
}