From 57213442908e2e350cc294f00e1ef4f5d588c34a Mon Sep 17 00:00:00 2001 From: Daniel Kudwien Date: Wed, 24 Aug 2022 12:15:53 +0200 Subject: [PATCH] Fixed file not found errors. --- object-cache.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/object-cache.php b/object-cache.php index a81bf83..acae684 100644 --- a/object-cache.php +++ b/object-cache.php @@ -583,7 +583,10 @@ public function get($key, $group = 'default', $force = false, &$success = null) } } - $result = @include $this->filePath($key, $group); + $result = false; + if (file_exists($file_path = $this->filePath($key, $group))) { + $result = include $file_path; + } if (false === $result) { // file did not exist. $success = false;