summaryrefslogtreecommitdiffstats
path: root/lib/private/cache/fileglobal.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/private/cache/fileglobal.php')
-rw-r--r--lib/private/cache/fileglobal.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/cache/fileglobal.php b/lib/private/cache/fileglobal.php
index d9e0fd46d37..61902d273c7 100644
--- a/lib/private/cache/fileglobal.php
+++ b/lib/private/cache/fileglobal.php
@@ -52,7 +52,7 @@ class FileGlobal {
public function hasKey($key) {
$key = $this->fixKey($key);
$cache_dir = self::getCacheDir();
- if ($cache_dir && is_file($cache_dir.$key)) {
+ if ($cache_dir && is_readable($cache_dir.$key)) {
$mtime = filemtime($cache_dir.$key);
if ($mtime < time()) {
unlink($cache_dir.$key);