Merge pull request #10881 from owncloud/touch-statcache

Clear statcache before getting the mtime from local storage backends
This commit is contained in:
Robin Appelman 2014-12-02 23:29:24 +01:00
commit 2bbb11fb63
2 changed files with 2 additions and 0 deletions

View File

@ -134,6 +134,7 @@ if (\OC_Util::runningOnWindows()) {
} }
public function filemtime($path) { public function filemtime($path) {
clearstatcache($this->getSourcePath($path));
return filemtime($this->getSourcePath($path)); return filemtime($this->getSourcePath($path));
} }

View File

@ -153,6 +153,7 @@ class MappedLocal extends \OC\Files\Storage\Common {
} }
public function filemtime($path) { public function filemtime($path) {
clearstatcache($this->getSourcePath($path));
return filemtime($this->getSourcePath($path)); return filemtime($this->getSourcePath($path));
} }