Skip to content

Commit a868182

Browse files
authored
Merge pull request #11084 from nanaya/local-cache-manager-config
Use config variable directly
2 parents 185cabd + 9f1c2f6 commit a868182

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

app/Singletons/LocalCacheManager.php

+1-3
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,13 @@
1010
class LocalCacheManager
1111
{
1212
private int $resetTicker = 0;
13-
private int $resetTickerLimit;
1413
private array $singletons = [];
1514

1615
public function incrementResetTicker(): void
1716
{
1817
$this->resetTicker++;
19-
$this->resetTickerLimit ??= $GLOBALS['cfg']['osu']['octane']['local_cache_reset_requests'];
2018

21-
if ($this->resetTicker > $this->resetTickerLimit) {
19+
if ($this->resetTicker > $GLOBALS['cfg']['osu']['octane']['local_cache_reset_requests']) {
2220
$this->resetTicker = 0;
2321
$this->resetCache();
2422
}

0 commit comments

Comments
 (0)