From: Vincent Vanwaelscappel Date: Thu, 7 Aug 2025 15:49:43 +0000 (+0200) Subject: #7684 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=265f8180dd9e4087fd2f5cf03d44243664cb6701;p=cubist_util.git #7684 --- diff --git a/src/Graphics/Image.php b/src/Graphics/Image.php index 8548a82..d60c745 100644 --- a/src/Graphics/Image.php +++ b/src/Graphics/Image.php @@ -7,6 +7,7 @@ use Cubist\Util\Animations\OAMAnimation; use Cubist\Util\Animations\ZipAnimation; use Cubist\Util\Files\Files; use Cubist\Util\Text; +use Illuminate\Support\Facades\Cache; use Illuminate\Support\Facades\Log; class Image @@ -39,11 +40,11 @@ class Image return self::$_imagesizeCache[$cacheKey]; } - $res = cache()->rememberForever($cacheKey, function () use ($ext, $path) { + $res = Cache::rememberForever($cacheKey, function () use ($ext, $path) { return self::_getimagesize($path, $ext); }); if (!$res) { - cache()->forget($cacheKey); + Cache::forget($cacheKey); } else { self::$_imagesizeCache[$cacheKey] = $res; }