Skip to content
Snippets Groups Projects
Unverified Commit f9729904 authored by Robin Appelman's avatar Robin Appelman
Browse files

dont try to update storage mtime if we can't get the mtime


Signed-off-by: default avatarRobin Appelman <robin@icewind.nl>
parent 64a29d01
No related branches found
No related tags found
No related merge requests found
......@@ -224,12 +224,15 @@ class Updater implements IUpdater {
private function updateStorageMTimeOnly($internalPath) {
$fileId = $this->cache->getId($internalPath);
if ($fileId !== -1) {
$this->cache->update(
$fileId, [
'mtime' => null, // this magic tells it to not overwrite mtime
'storage_mtime' => $this->storage->filemtime($internalPath)
]
);
$mtime = $this->storage->filemtime($internalPath);
if ($mtime !== false) {
$this->cache->update(
$fileId, [
'mtime' => null, // this magic tells it to not overwrite mtime
'storage_mtime' => $mtime
]
);
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment