diff options
author | Robin Appelman <icewind@owncloud.com> | 2012-09-30 16:12:16 +0200 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2012-09-30 16:12:16 +0200 |
commit | 91d12a2f3d860c25ae8daa0cfd838fd6deba5dec (patch) | |
tree | 7f56836fd5dfb60c37727f4d50bfc8afa4f7bd5f /lib/util.php | |
parent | 113c339c41663c692eae809ada23c4057f9e3ff0 (diff) | |
download | nextcloud-server-91d12a2f3d860c25ae8daa0cfd838fd6deba5dec.tar.gz nextcloud-server-91d12a2f3d860c25ae8daa0cfd838fd6deba5dec.zip |
update the filecache by setting mtimes to 0 when the mount configuration has changed instead of clearing the cache
Diffstat (limited to 'lib/util.php')
-rwxr-xr-x | lib/util.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/util.php b/lib/util.php index 310ca6afec9..db715a7a0f3 100755 --- a/lib/util.php +++ b/lib/util.php @@ -62,7 +62,7 @@ class OC_Util { $mtime=filemtime($user_root.'/mount.php'); $previousMTime=OC_Preferences::getValue($user,'files','mountconfigmtime',0); if($mtime>$previousMTime) {//mount config has changed, filecache needs to be updated - OC_FileCache::clear($user); + OC_FileCache::triggerUpdate($user); OC_Preferences::setValue($user,'files','mountconfigmtime',$mtime); } } @@ -574,4 +574,4 @@ class OC_Util { } return $pseudo_byte; } -}
\ No newline at end of file +} |