[ Index ]

PHP Cross Reference of Drupal 6 (gatewave)

title

Body

[close]

/sites/all/modules/ctools/includes/ -> object-cache.cron.inc (source)

   1  <?php
   2  // $Id: object-cache.cron.inc,v 1.1.2.2 2010/08/27 23:47:17 merlinofchaos Exp $
   3  
   4  /**
   5   * @file
   6   * Contains cron hooks for the object cache tool.
   7   *
   8   * We use this to clean up old object caches.
   9   */
  10  
  11  function ctools_object_cache_cron() {
  12    if (variable_get('ctools_last_cron', 0) < time() - 86400) {
  13      variable_set('ctools_last_cron', time());
  14      ctools_include('object-cache');
  15      ctools_object_cache_clean();
  16    }
  17  }


Generated: Thu Mar 24 11:18:33 2011 Cross-referenced by PHPXref 0.7