1
0
mirror of https://github.com/flextype/flextype.git synced 2025-08-19 19:31:31 +02:00

feat(core): update Entries fetch method #212 #186

- remove additional check
This commit is contained in:
Awilum
2019-08-20 13:02:21 +03:00
parent f3568ecfa4
commit 7e83fea1ed

View File

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