From: Vincent Vanwaelscappel Date: Tue, 10 Oct 2023 15:14:50 +0000 (+0200) Subject: wip #6386 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=929034ab70e955073ec2a158808d28ff14dc2f36;p=cubist_locale.git wip #6386 --- diff --git a/src/Translate.php b/src/Translate.php index df50dac..f583e2d 100644 --- a/src/Translate.php +++ b/src/Translate.php @@ -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