mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-21 13:54:02 -07:00
Some cleanup (#1003)
This commit is contained in:
parent
9dc9453ba7
commit
459e5e161f
8 changed files with 17 additions and 72 deletions
|
@ -20,9 +20,7 @@ if (!$mode = (string)$this->request['mode']) {
|
|||
switch ($mode) {
|
||||
case 'clear_cache':
|
||||
foreach ($bb_cfg['cache']['engines'] as $cache_name => $cache_val) {
|
||||
if (!in_array('db_sqlite', $cache_val)) {
|
||||
CACHE($cache_name)->rm();
|
||||
}
|
||||
CACHE($cache_name)->rm();
|
||||
}
|
||||
|
||||
$this->response['cache_html'] = '<span class="seed bold">' . $lang['ALL_CACHE_CLEARED'] . '</span>';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue