mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
Merge pull request #35369 from nextcloud/backport/35353/stable23
[stable23] Update cache when file size === 0
This commit is contained in:
commit
d74e2b68a8
1 changed files with 3 additions and 3 deletions
|
|
@ -1179,13 +1179,13 @@ class View {
|
|||
throw $e;
|
||||
}
|
||||
|
||||
if ($result && in_array('delete', $hooks)) {
|
||||
if ($result !== false && in_array('delete', $hooks)) {
|
||||
$this->removeUpdate($storage, $internalPath);
|
||||
}
|
||||
if ($result && in_array('write', $hooks, true) && $operation !== 'fopen' && $operation !== 'touch') {
|
||||
if ($result !== false && in_array('write', $hooks, true) && $operation !== 'fopen' && $operation !== 'touch') {
|
||||
$this->writeUpdate($storage, $internalPath);
|
||||
}
|
||||
if ($result && in_array('touch', $hooks)) {
|
||||
if ($result !== false && in_array('touch', $hooks)) {
|
||||
$this->writeUpdate($storage, $internalPath, $extraParam);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue