]> _ Git - fluidbook_tools.git/commitdiff
#7483 @0.5
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 15 Apr 2025 10:55:26 +0000 (12:55 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 15 Apr 2025 10:55:26 +0000 (12:55 +0200)
src/Links/CustomLink.php

index 0e345b57ce5109837f0587d89b48e11b8e0f6565..3c770b7a92a0501989fc7dd3f2c247aee38a203f 100644 (file)
@@ -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];
     }
+
 }