mirror of
https://github.com/torrentpier/torrentpier-lts.git
synced 2025-03-01 15:21:02 +03:00
15 lines
367 B
PHP
15 lines
367 B
PHP
<?php
|
|
|
|
if (!defined('BB_ROOT')) die(basename(__FILE__));
|
|
|
|
global $cron_runtime_log;
|
|
|
|
foreach ($bb_cfg['cache']['engines'] as $cache_name => $cache_val)
|
|
{
|
|
if (method_exists(CACHE($cache_name), 'gc'))
|
|
{
|
|
$changes = CACHE($cache_name)->gc();
|
|
$cron_runtime_log = date('Y-m-d H:i:s') ." -- ". str_pad("$cache_name ", 25, '-', STR_PAD_RIGHT) ." del: $changes\n";
|
|
}
|
|
}
|