mirror of
https://github.com/MrUnknownDE/panel.git
synced 2026-04-21 07:43:45 +02:00
[L6] Update cache methods to use defined times and not ints
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
|
||||
namespace Pterodactyl\Services\Helpers;
|
||||
|
||||
use Cake\Chronos\Chronos;
|
||||
use Illuminate\Filesystem\FilesystemManager;
|
||||
use Illuminate\Contracts\Foundation\Application;
|
||||
use Illuminate\Contracts\Cache\Repository as CacheRepository;
|
||||
@@ -134,7 +135,7 @@ class AssetHashService
|
||||
}
|
||||
|
||||
$contents = json_decode($this->filesystem->get(self::MANIFEST_PATH), true);
|
||||
$this->cache->put('Core:AssetManifest', $contents, 1440);
|
||||
$this->cache->put('Core:AssetManifest', $contents, Chronos::now()->addMinutes(1440));
|
||||
|
||||
return self::$manifest = $contents;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user