]> _ Git - cubist_util.git/commitdiff
#7684
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 7 Aug 2025 15:49:43 +0000 (17:49 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 7 Aug 2025 15:49:43 +0000 (17:49 +0200)
src/Graphics/Image.php

index 8548a82e7a1d3e1650b3f172663bd5f718b56f34..d60c7455d54edda3ff4f2c484037dc675d1614c6 100644 (file)
@@ -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;
         }