From 0e149d72f7fd0bdde48ac540bf2b03bbe7d61683 Mon Sep 17 00:00:00 2001 From: Awilum Date: Sun, 3 Jan 2021 13:22:16 +0300 Subject: [PATCH] fix(entries): fix issue with individual entries cache field #537 --- src/flextype/Foundation/Entries/Entries.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/flextype/Foundation/Entries/Entries.php b/src/flextype/Foundation/Entries/Entries.php index 3d79ebd2..59b4f2e5 100755 --- a/src/flextype/Foundation/Entries/Entries.php +++ b/src/flextype/Foundation/Entries/Entries.php @@ -123,10 +123,11 @@ class Entries // Apply filter for fetch data $this->storage()->set('fetch.data', filter($this->storage()->get('fetch.data'), - $this->storage()->get('fetch.options.filter', []))); + $this->storage()->get('fetch.options.filter', []))); // Set cache state - $cache = $this->storage()->get('fetch.data.cache', flextype('registry')->get('flextype.settings.cache.enabled')); + $cache = $this->storage()->get('fetch.data.cache.enabled', + flextype('registry')->get('flextype.settings.cache.enabled')); // Save entry data to cache if ($cache) {