Missed one.

This commit is contained in:
ringmaster 2014-05-30 10:40:26 -04:00
parent 16ae63bdfd
commit 19f0c47842
1 changed files with 1 additions and 1 deletions

View File

@ -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));