mirror of
https://github.com/nextcloud/server.git
synced 2026-06-10 09:13:19 -04:00
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
2 changed files with 2 additions and 0 deletions
|
|
@ -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 a new issue