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

Flextype Core: Entries - issue with possible boolean false result from Filesystem::getTimestamp() inside method fetch() - fixed. #182

This commit is contained in:
Awilum
2019-07-06 16:41:07 +03:00
parent a819bdae3c
commit 0ec370ec33

View File

@@ -70,7 +70,11 @@ class Entries
// Create unique entry cache_id
// Entry Cache ID = entry + entry file + entry file time stamp
$entry_cache_id = md5('entry' . $entry_file . Filesystem::getTimestamp($entry_file));
if ($timestamp = Filesystem::getTimestamp($entry_file)) {
$entry_cache_id = md5('entry' . $entry_file . $timestamp);
} else {
$entry_cache_id = md5('entry' . $entry_file);
}
// Try to get the requested entry from cache
if ($this->flextype['cache']->contains($entry_cache_id)) {