aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engine/lib/cache.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/engine/lib/cache.php b/engine/lib/cache.php
index fd13bf3c7..df7b1e525 100644
--- a/engine/lib/cache.php
+++ b/engine/lib/cache.php
@@ -389,8 +389,11 @@ class ElggFileCache extends ElggCache {
*/
public function delete($key) {
$dir = $this->get_variable("cache_path");
-
- return unlink($dir.$key);
+
+ if (file_exists($dir.$key)) {
+ return unlink($dir.$key);
+ }
+ return TRUE;
}
public function clear() {