Mercurial > hg > rr-repo
comparison sites/all/modules/ctools/includes/object-cache.cron.inc @ 0:ff03f76ab3fe
initial version
author | danieleb <danielebarchiesi@me.com> |
---|---|
date | Wed, 21 Aug 2013 18:51:11 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:ff03f76ab3fe |
---|---|
1 <?php | |
2 | |
3 /** | |
4 * @file | |
5 * Contains cron hooks for the object cache tool. | |
6 * | |
7 * We use this to clean up old object caches. | |
8 */ | |
9 | |
10 function ctools_object_cache_cron() { | |
11 if (variable_get('ctools_last_cron', 0) < time() - 86400) { | |
12 variable_set('ctools_last_cron', time()); | |
13 ctools_include('object-cache'); | |
14 ctools_object_cache_clean(); | |
15 } | |
16 } |