You are here

public static function QPCache::remove in QueryPath 7.2

Same name and namespace in other branches
  1. 6 qpcache/qpcache.module \QPCache::remove()
  2. 7.3 qpcache/qpcache.module \QPCache::remove()

Remove a single entry from the cache.

This will remove the item whether it has expired or note.

Parameters

$key: The key of the item to be removed.

1 call to QPCache::remove()
qpcache_remove in qpcache/qpcache.module
Remove an item from the cache.

File

qpcache/qpcache.module, line 278
The main file for qpcache.

Class

QPCache
This is a special-purpose XML cache.

Code

public static function remove($key) {
  list($crckey, $hashkey) = self::genMultiKey($key);
  db_delete('qpcache_xmlcache')
    ->condition('hashkey', $hashkey);
}