Mercurial > hg > rr-repo
view sites/all/modules/ctools/includes/object-cache.cron.inc @ 9:830c812b520f
added smtp module
author | root <root@paio.local> |
---|---|
date | Mon, 28 Oct 2013 15:34:27 +0000 |
parents | ff03f76ab3fe |
children |
line wrap: on
line source
<?php /** * @file * Contains cron hooks for the object cache tool. * * We use this to clean up old object caches. */ function ctools_object_cache_cron() { if (variable_get('ctools_last_cron', 0) < time() - 86400) { variable_set('ctools_last_cron', time()); ctools_include('object-cache'); ctools_object_cache_clean(); } }