diff options
author | Robin Appelman <icewind@owncloud.com> | 2012-07-22 03:24:34 +0200 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2012-07-22 03:24:34 +0200 |
commit | 59ab8b14c74c491fc1309e96f58d4ebc6ffd95d4 (patch) | |
tree | b9cd9b4f25e168d3fcf2f377eaa8e49a49469386 /apps/files/ajax/scan.php | |
parent | 6843beeae97835573cf792c8367b41ecfeef5342 (diff) | |
download | nextcloud-server-59ab8b14c74c491fc1309e96f58d4ebc6ffd95d4.tar.gz nextcloud-server-59ab8b14c74c491fc1309e96f58d4ebc6ffd95d4.zip |
cache fileid's in oc_cache
Diffstat (limited to 'apps/files/ajax/scan.php')
-rw-r--r-- | apps/files/ajax/scan.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/apps/files/ajax/scan.php b/apps/files/ajax/scan.php index 6fcf97688c2..eef38858516 100644 --- a/apps/files/ajax/scan.php +++ b/apps/files/ajax/scan.php @@ -16,6 +16,11 @@ session_write_close(); if($force or !OC_FileCache::inCache('')){ if(!$checkOnly){ OCP\DB::beginTransaction(); + + if(OC_Cache::isFast()){ + OC_Cache::clear('fileid/'); //make sure the old fileid's don't mess things up + } + OC_FileCache::scan($dir,$eventSource); OC_FileCache::clean(); OCP\DB::commit(); |