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;