You are here

protected function DrupalFileCache::delete_wildcard in File Cache 7

Delete all cache objects witch specified prefix in their name.

Parameters

$cid_prefix: Prefix for cache IDs to delete.

2 calls to DrupalFileCache::delete_wildcard()
DrupalFileCache::clear in ./filecache.inc
Expire data from the cache. If called without arguments, expirable entries will be cleared from the cache_page and cache_block bins.
DrupalFileCache::truncate_if_needed in ./filecache.inc

File

./filecache.inc, line 487
DrupalFileCache class that implements DrupalCacheInterface.

Class

DrupalFileCache

Code

protected function delete_wildcard($cid_prefix) {
  foreach ($this
    ->all($cid_prefix) as $filename) {
    @unlink($this->directory . '/' . $filename);
  }
}