From 7e83fea1ed49a229e11bb81c523420e505584a84 Mon Sep 17 00:00:00 2001 From: Awilum Date: Tue, 20 Aug 2019 13:02:21 +0300 Subject: [PATCH] feat(core): update Entries fetch method #212 #186 - remove additional check --- flextype/core/Entries.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/flextype/core/Entries.php b/flextype/core/Entries.php index 969eb368..b124db21 100755 --- a/flextype/core/Entries.php +++ b/flextype/core/Entries.php @@ -99,12 +99,8 @@ class Entries */ public function fetch(string $id) { - // Get entry file location - //$entry_file = $this->_file_location($id); - // If requested entry file founded then process it - if ($this->has($id)) { - $_entry = $this->read($id); + if ($_entry = $this->read($id)) { // Create unique entry cache_id // Entry Cache ID = entry + entry file + entry file time stamp