From: Vincent Vanwaelscappel Date: Tue, 15 Apr 2025 10:55:26 +0000 (+0200) Subject: #7483 @0.5 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=a888004a72c8acd7a9e3c03f6105b064559ba8b4;p=fluidbook_tools.git #7483 @0.5 --- diff --git a/src/Links/CustomLink.php b/src/Links/CustomLink.php index 0e345b5..3c770b7 100644 --- a/src/Links/CustomLink.php +++ b/src/Links/CustomLink.php @@ -74,7 +74,9 @@ class CustomLink extends NormalLink protected static function getAllURLOf($type) { - if (!isset(static::$_all[$type])) { + $cacheKey = 'reset_custom_link_' . $type; + if (!isset(static::$_all[$type]) || cache()->get($cacheKey, false)) { + cache()->set($cacheKey, false); static::$_all[$type] = []; $res = DB::table('fluidbook_reference_url')->where('type', $type)->get(['url', 'ref']); foreach ($res as $item) { @@ -83,4 +85,5 @@ class CustomLink extends NormalLink } return static::$_all[$type]; } + }