Clear the statscache before fetching the metadata
Else if a lot of writes happen. It might happen that an old stat result is used. Resulting in a wrong file size for the file. For example the text app when a lot of people edit at the same time. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
parent
bdb9f31cf1
commit
9d2d3c4809
|
@ -156,6 +156,7 @@ class Local extends \OC\Files\Storage\Common {
|
||||||
*/
|
*/
|
||||||
public function getMetaData($path) {
|
public function getMetaData($path) {
|
||||||
$fullPath = $this->getSourcePath($path);
|
$fullPath = $this->getSourcePath($path);
|
||||||
|
clearstatcache();
|
||||||
$stat = @stat($fullPath);
|
$stat = @stat($fullPath);
|
||||||
if (!$stat) {
|
if (!$stat) {
|
||||||
return null;
|
return null;
|
||||||
|
|
Loading…
Reference in New Issue