diff options
Diffstat (limited to 'apps/files/ajax/scan.php')
-rw-r--r-- | apps/files/ajax/scan.php | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/apps/files/ajax/scan.php b/apps/files/ajax/scan.php index 23d7da44f8d..d2ec1ab5161 100644 --- a/apps/files/ajax/scan.php +++ b/apps/files/ajax/scan.php @@ -16,13 +16,12 @@ session_write_close(); if($force or !OC_FileCache::inCache('')) { if(!$checkOnly) { OCP\DB::beginTransaction(); - + if(OC_Cache::isFast()) { - //make sure the old fileid's don't mess things up - OC_Cache::clear('fileid/'); + OC_Cache::clear('fileid/'); //make sure the old fileid's don't mess things up } - - OC_FileCache::scan($dir, $eventSource); + + OC_FileCache::scan($dir,$eventSource); OC_FileCache::clean(); OCP\DB::commit(); $eventSource->send('success', true); |