]> _ Git - cubist_locale.git/commitdiff
wip #6386
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 10 Oct 2023 15:14:50 +0000 (17:14 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 10 Oct 2023 15:14:50 +0000 (17:14 +0200)
src/Translate.php

index df50dac5079c860811dcaf8c53ad8bbbd5736b83..f583e2d82d6401530f36836fcea8bda79c495188 100644 (file)
@@ -88,7 +88,7 @@ class Translate
             return [];
         }
         $cacheKey = 'totranslate_' . Files::hashFileAttributes($file->getPathname());
-        return Cache::rememberForever($cacheKey, function () use ($file) {
+        return Cache::remember($cacheKey,3600, function () use ($file) {
             $c = file_get_contents($file);
             $res = [];
             // @link https://regex101.com/r/uD0eT1/4