You are here

function views_oai_pmh_garbage_collect in Views OAI-PMH 7

Same name and namespace in other branches
  1. 6.2 views_oai_pmh.module \views_oai_pmh_garbage_collect()
  2. 6 views_oai_pmh.module \views_oai_pmh_garbage_collect()
  3. 7.3 views_oai_pmh.module \views_oai_pmh_garbage_collect()
  4. 7.2 views_oai_pmh.module \views_oai_pmh_garbage_collect()
1 call to views_oai_pmh_garbage_collect()
views_oai_pmh_cron in ./views_oai_pmh.module

File

./views_oai_pmh.module, line 39

Code

function views_oai_pmh_garbage_collect() {
  $cache_flush = time() - OAI_TOKEN_LIFETIME;
  db_delete('cache_views_oai_pmh')
    ->condition('expire', $cache_flush, '<=')
    ->execute();
}