You are here

function panels_cron in Panels 6.2

Same name and namespace in other branches
  1. 5.2 panels.module \panels_cron()

Implementation of hook_cron. Clean up old caches.

File

./panels.module, line 280
panels.module

Code

function panels_cron() {

  // delete anything 7 days old or more.
  db_query("DELETE FROM {panels_object_cache} WHERE timestamp < %d", time() - 86400 * 7);
}