We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 185cabd + 9f1c2f6 commit a868182Copy full SHA for a868182
app/Singletons/LocalCacheManager.php
@@ -10,15 +10,13 @@
10
class LocalCacheManager
11
{
12
private int $resetTicker = 0;
13
- private int $resetTickerLimit;
14
private array $singletons = [];
15
16
public function incrementResetTicker(): void
17
18
$this->resetTicker++;
19
- $this->resetTickerLimit ??= $GLOBALS['cfg']['osu']['octane']['local_cache_reset_requests'];
20
21
- if ($this->resetTicker > $this->resetTickerLimit) {
+ if ($this->resetTicker > $GLOBALS['cfg']['osu']['octane']['local_cache_reset_requests']) {
22
$this->resetTicker = 0;
23
$this->resetCache();
24
}
0 commit comments