You are here

function views_oai_pmh_garbage_collect in Views OAI-PMH 6

Same name and namespace in other branches
  1. 6.2 views_oai_pmh.module \views_oai_pmh_garbage_collect()
  2. 7.3 views_oai_pmh.module \views_oai_pmh_garbage_collect()
  3. 7 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 35

Code

function views_oai_pmh_garbage_collect() {
  $cache_flush = time() - OAI_TOKEN_LIFETIME;
  db_query("DELETE FROM {cache_views_oai_pmh} WHERE expire <= %d", $cache_flush);
}