diff options
author | Robin Appelman <robin@icewind.nl> | 2014-12-02 23:29:24 +0100 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2014-12-02 23:29:24 +0100 |
commit | 2bbb11fb63cec92b16a17ef1fa49d4a6a0495fd8 (patch) | |
tree | edc27164a7fcf50daed9cfa71e3a402c72315559 /lib | |
parent | f9958153eff552604c9edbb782b880fe87b649ac (diff) | |
parent | 1bbb18fe87aaea991b73b00dbe7d7fd2a2ec82a5 (diff) | |
download | nextcloud-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.php | 1 | ||||
-rw-r--r-- | lib/private/files/storage/mappedlocal.php | 1 |
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)); } |