Skip to content

Commit 3c0bff1

Browse files
committed
Merge #285 [FIX NC30]Fix android e2ee slowness and upload speed
2 parents 9d697bf + f3dab51 commit 3c0bff1

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
@@ -120,6 +120,11 @@ public function update($path, $time = null, ?int $sizeDifference = null) {
120120
$sizeDifference = null;
121121
}
122122

123+
$appDataPath = 'appdata_' . \OC_Util::getInstanceId() . '/end_to_end_encryption/meta-data';
124+
if (str_starts_with($path, $appDataPath)) {
125+
return;
126+
}
127+
123128
// scanner didn't provide size info, fallback to full size calculation
124129
if ($this->cache instanceof Cache && $sizeDifference === null) {
125130
$this->cache->correctFolderSize($path, $data);
@@ -147,6 +152,11 @@ public function remove($path) {
147152

148153
$this->cache->remove($path);
149154

155+
$appDataPath = 'appdata_' . \OC_Util::getInstanceId() . '/end_to_end_encryption/meta-data';
156+
if (str_starts_with($path, $appDataPath)) {
157+
return;
158+
}
159+
150160
$this->correctParentStorageMtime($path);
151161
if ($entry instanceof ICacheEntry) {
152162
$this->propagator->propagateChange($path, time(), -$entry->getSize());

0 commit comments

Comments
 (0)