Browse Source

Merge pull request #10881 from owncloud/touch-statcache

Clear statcache before getting the mtime from local storage backends
remotes/origin/fix-10825
Robin Appelman 11 years ago
parent
commit
2bbb11fb63
  1. 1
      lib/private/files/storage/local.php
  2. 1
      lib/private/files/storage/mappedlocal.php

1
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));
}

1
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));
}

Loading…
Cancel
Save