1
0
mirror of https://github.com/flextype/flextype.git synced 2025-08-08 14:16:46 +02:00

fix(entries): fix issue with individual entries cache field #537

This commit is contained in:
Awilum
2021-01-03 13:22:16 +03:00
parent e68ef17aad
commit 0e149d72f7

View File

@@ -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) {