b2evolution PHP Cross Reference Blogging Systems

Source: /inc/cron/jobs/_prune_page_cache.job.php - 20 lines - 495 bytes - Text - Print

Description: This file implements the Page Cache pruning Cron controller (delete old files from the cache)

   1  <?php
   2  /**
   3   * This file implements the Page Cache pruning Cron controller (delete old files from the cache)
   4   *
   5   * @author asimo: Attila Simo
   6   *
   7   * @version $Id: _prune_page_cache.job.php 5555 2014-01-03 00:10:21Z fplanque $
   8   */
   9  if( !defined('EVO_MAIN_INIT') ) die( 'Please, do not access this page directly.' );
  10  
  11  load_class( '_core/model/_pagecache.class.php', 'PageCache' );
  12  
  13  $result_message = PageCache::prune_page_cache();
  14  if( empty( $result_message ) )
  15  {
  16      return 1; /* OK */
  17  }
  18  
  19  return 100;
  20  ?>

title

Description

title

Description

title

Description

title

title

Body