summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2014-12-02 23:29:24 +0100
committerRobin Appelman <robin@icewind.nl>2014-12-02 23:29:24 +0100
commit2bbb11fb63cec92b16a17ef1fa49d4a6a0495fd8 (patch)
treeedc27164a7fcf50daed9cfa71e3a402c72315559 /lib
parentf9958153eff552604c9edbb782b880fe87b649ac (diff)
parent1bbb18fe87aaea991b73b00dbe7d7fd2a2ec82a5 (diff)
downloadnextcloud-server-2bbb11fb63cec92b16a17ef1fa49d4a6a0495fd8.tar.gz
nextcloud-server-2bbb11fb63cec92b16a17ef1fa49d4a6a0495fd8.zip
Merge pull request #10881 from owncloud/touch-statcache
Clear statcache before getting the mtime from local storage backends
Diffstat (limited to 'lib')
-rw-r--r--lib/private/files/storage/local.php1
-rw-r--r--lib/private/files/storage/mappedlocal.php1
2 files changed, 2 insertions, 0 deletions
diff --git a/lib/private/files/storage/local.php b/lib/private/files/storage/local.php
index 7b4abf08f44..e8be7daba7e 100644
--- a/lib/private/files/storage/local.php
+++ b/lib/private/files/storage/local.php
@@ -134,6 +134,7 @@ if (\OC_Util::runningOnWindows()) {
}
public function filemtime($path) {
+ clearstatcache($this->getSourcePath($path));
return filemtime($this->getSourcePath($path));
}
diff --git a/lib/private/files/storage/mappedlocal.php b/lib/private/files/storage/mappedlocal.php
index fe6fff4ebdb..8f813f973b9 100644
--- a/lib/private/files/storage/mappedlocal.php
+++ b/lib/private/files/storage/mappedlocal.php
@@ -153,6 +153,7 @@ class MappedLocal extends \OC\Files\Storage\Common {
}
public function filemtime($path) {
+ clearstatcache($this->getSourcePath($path));
return filemtime($this->getSourcePath($path));
}