Merge pull request #10881 from owncloud/touch-statcache
Clear statcache before getting the mtime from local storage backends
This commit is contained in:
commit
2bbb11fb63
|
@ -134,6 +134,7 @@ if (\OC_Util::runningOnWindows()) {
|
|||
}
|
||||
|
||||
public function filemtime($path) {
|
||||
clearstatcache($this->getSourcePath($path));
|
||||
return filemtime($this->getSourcePath($path));
|
||||
}
|
||||
|
||||
|
|
|
@ -153,6 +153,7 @@ class MappedLocal extends \OC\Files\Storage\Common {
|
|||
}
|
||||
|
||||
public function filemtime($path) {
|
||||
clearstatcache($this->getSourcePath($path));
|
||||
return filemtime($this->getSourcePath($path));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue