summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorringmaster <epithet@gmail.com>2014-05-30 10:40:26 -0400
committerringmaster <epithet@gmail.com>2014-05-30 10:40:26 -0400
commit19f0c47842527d565df3383a2c65830df3f3274f (patch)
treecb800ed874f5bb125e860c04f2a811194f3f4db1 /lib
parent16ae63bdfd8556dceb251fd284dc97d330ca8092 (diff)
downloadnextcloud-server-19f0c47842527d565df3383a2c65830df3f3274f.tar.gz
nextcloud-server-19f0c47842527d565df3383a2c65830df3f3274f.zip
Missed one.
Diffstat (limited to 'lib')
-rw-r--r--lib/private/files/cache/scanner.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/files/cache/scanner.php b/lib/private/files/cache/scanner.php
index 875d941fb77..6dceaf13ec3 100644
--- a/lib/private/files/cache/scanner.php
+++ b/lib/private/files/cache/scanner.php
@@ -167,7 +167,7 @@ class Scanner extends BasicEmitter {
}
if (!empty($newData)) {
\OC_Hook::emit('Scanner', 'addToCache', array('file' => $file, 'data' => $newData));
- if(!Config::getSystemValue('filesystem_cache_readonly', false)) {
+ if($this->cacheActive) {
$data['fileid'] = $this->cache->put($file, $newData);
}
$this->emit('\OC\Files\Cache\Scanner', 'postScanFile', array($file, $this->storageId));