Skip to content

Commit 50e3605

Browse files
committed
Merge #287 [FIX NC 29]Fix android e2ee slowness and upload speed
2 parents fd0919d + b86de9a commit 50e3605

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

lib/private/Files/Cache/Updater.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,11 @@ public function update($path, $time = null, ?int $sizeDifference = null) {
140140
$sizeDifference = null;
141141
}
142142

143+
$appDataPath = 'appdata_' . \OC_Util::getInstanceId() . '/end_to_end_encryption/meta-data';
144+
if (str_starts_with($path, $appDataPath)) {
145+
return;
146+
}
147+
143148
// scanner didn't provide size info, fallback to full size calculation
144149
if ($this->cache instanceof Cache && $sizeDifference === null) {
145150
$this->cache->correctFolderSize($path, $data);
@@ -167,6 +172,11 @@ public function remove($path) {
167172

168173
$this->cache->remove($path);
169174

175+
$appDataPath = 'appdata_' . \OC_Util::getInstanceId() . '/end_to_end_encryption/meta-data';
176+
if (str_starts_with($path, $appDataPath)) {
177+
return;
178+
}
179+
170180
$this->correctParentStorageMtime($path);
171181
if ($entry instanceof ICacheEntry) {
172182
$this->propagator->propagateChange($path, time(), -$entry->getSize());

0 commit comments

Comments
 (0)