You are here

public static function QPCache::prune in QueryPath 7.3

Same name and namespace in other branches
  1. 6 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 287
The main file for qpcache.

Class

QPCache
This is a special-purpose XML cache.

Code

public static function prune() {
  db_delete('qpcache_xmlcache')
    ->condition('expire', array(
    1,
    time(),
  ), 'BETWEEN');
}