From cf3940425ff4b4590bb4e392c58c0ee1aa6f87b0 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Fri, 11 May 2012 20:49:19 +0200 Subject: [PATCH] don't do the initial scanning of the users home folder trough the update system --- lib/filecache.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/filecache.php b/lib/filecache.php index 9fa3fbea97d..9ec307cc812 100644 --- a/lib/filecache.php +++ b/lib/filecache.php @@ -633,13 +633,16 @@ class OC_FileCache{ } $mtime=$view->filemtime($path); $isDir=$view->is_dir($path); - $path=$root.$path; + $fullPath=$root.$path; $query=OC_DB::prepare('SELECT mtime FROM *PREFIX*fscache WHERE path_hash=?'); - $result=$query->execute(array(md5($path))); + $result=$query->execute(array(md5($fullPath))); if($row=$result->fetchRow()){ $cachedMTime=$row['mtime']; return ($mtime>$cachedMTime); }else{//file not in cache, so it has to be updated + if($path=='/' or $path==''){//dont auto update the root folder, it will be scanned + return false; + } return true; } } -- 2.39.5