Stage 8 has been completed

This commit is contained in:
Divarion-D
2026-03-07 21:53:45 +03:00
parent 80a25d3140
commit 3d8abedafd
608 changed files with 12155 additions and 13000 deletions
+4 -6
View File
@@ -1,10 +1,10 @@
<?php
class SettingsRepository {
public static function getAll($rGetCacheCallback, $rSetCacheCallback, $rForce = false) {
public static function getAll($rForce = false) {
global $db;
if (!$rForce && is_callable($rGetCacheCallback)) {
$rCache = call_user_func($rGetCacheCallback, 'settings', 20);
if (!$rForce) {
$rCache = FileCache::getCache('settings', 20);
if (!empty($rCache)) {
return $rCache;
}
@@ -31,9 +31,7 @@ class SettingsRepository {
}
$rOutput['api_ips'] = !empty($rOutput['api_ips']) ? explode(',', $rOutput['api_ips']) : [];
if (is_callable($rSetCacheCallback)) {
call_user_func($rSetCacheCallback, 'settings', $rOutput);
}
FileCache::setCache('settings', $rOutput);
return $rOutput;
}