File tree 1 file changed +4
-3
lines changed
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -214,9 +214,10 @@ protected function get()
214
214
if (request ()->has ('_storyblok ' ) || !config ('storyblok.cache ' )) {
215
215
$ response = $ this ->makeRequest ();
216
216
} else {
217
- $ uniqueTag = md5 (serialize ($ this ->getSettings ()));
217
+ $ apiHash = md5 (config ('storyblok.api_public_key ' ) ?? config ('storyblok.api_preview_key ' )); // unique id for multitenancy applications
218
+ $ uniqueTag = md5 (serialize ($ this ->getSettings ()));
218
219
219
- $ response = Cache::remember ($ this ->cacheKey . $ this ->slug . '- ' . $ uniqueTag , config ('storyblok.cache_duration ' ) * 60 , function () {
220
+ $ response = Cache::remember ($ this ->cacheKey . $ this ->slug . '- ' . $ apiHash . ' - ' . $ uniqueTag , config ('storyblok.cache_duration ' ) * 60 , function () {
220
221
return $ this ->makeRequest ();
221
222
});
222
223
}
@@ -269,4 +270,4 @@ public function toArray(): array
269
270
{
270
271
return $ this ->stories ->toArray ();
271
272
}
272
- }
273
+ }
You can’t perform that action at this time.
0 commit comments