From db3f7238dd1d10c826c2e484d1d8c2a720bbec47 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Fri, 5 Sep 2014 12:05:04 +0200 Subject: [PATCH 1/2] Clear statcache before getting the mtime from local storage backends --- lib/private/files/storage/local.php | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/private/files/storage/local.php b/lib/private/files/storage/local.php index 7b4abf08f4..e8be7daba7 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)); } From 1bbb18fe87aaea991b73b00dbe7d7fd2a2ec82a5 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Tue, 2 Dec 2014 16:39:03 +0100 Subject: [PATCH 2/2] also clear statcache in mapped local --- lib/private/files/storage/mappedlocal.php | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/private/files/storage/mappedlocal.php b/lib/private/files/storage/mappedlocal.php index fe6fff4ebd..8f813f973b 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)); }