You are here

public static function QPCache::prune in QueryPath 6

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

Remove expired keys.

1 call to QPCache::prune()
qpcache_cron in qpcache/qpcache.module
Implements hook_cron().

File

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

Class

QPCache
This is a special-purpose XML cache.

Code

public static function prune() {
  $now = time();
  db_query('DELETE FROM {qpcache_xmlcache} WHERE expire BETWEEN 1 AND %d', $now);
}