mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-20 21:33:54 -07:00
Refactored cache drivers 🗃 (#1553)
* Refactored cache drivers 🗃 * Updated * Update APCu.php * Update APCu.php * Update APCu.php * Update APCu.php * Update APCu.php * Update Redis.php * Update Redis.php * Updated * Update * Updated * Update config.php * Updated * Updated * Updated * Updated * Update config.php * Updated * Update composer.lock * Delete composer.lock * Create composer.lock * Update composer.lock * Update common.php * Update File.php * Updated * Update Sqlite.php * Update common.php * Update Redis.php * Updated * Update common.php * Updated
This commit is contained in:
parent
bfd61166be
commit
17a320b7c8
23 changed files with 1561 additions and 1066 deletions
|
@ -1,21 +0,0 @@
|
|||
<?php
|
||||
/**
|
||||
* TorrentPier – Bull-powered BitTorrent tracker engine
|
||||
*
|
||||
* @copyright Copyright (c) 2005-2024 TorrentPier (https://torrentpier.com)
|
||||
* @link https://github.com/torrentpier/torrentpier for the canonical source repository
|
||||
* @license https://github.com/torrentpier/torrentpier/blob/master/LICENSE MIT License
|
||||
*/
|
||||
|
||||
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";
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue