We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Learn more about funding links in repositories.
Report abuse
1 parent 86d27ff commit ea62004Copy full SHA for ea62004
lib/private/Files/ObjectStore/ObjectStoreStorage.php
@@ -704,11 +704,12 @@ private function validateUploadCache(): void {
704
}
705
706
707
- private function getUploadCacheKey($urn, $uploadId, $chunkId = null): string {
708
- return $urn . '-' . $uploadId . '-' . ($chunkId ? $chunkId . '-' : '');
+ private function getUploadCacheKey($urn, $uploadId, $key = null): string {
+ return $urn . '-' . $uploadId . '-' . ($key ? $key . '-' : '');
709
710
711
private function clearCache($urn, $uploadId): void {
712
- $this->uploadCache->clear($this->getUploadCacheKey($urn, $uploadId));
+ $this->uploadCache->remove($this->getUploadCacheKey($urn, $uploadId, 'uploadId'));
713
+ $this->uploadCache->remove($this->getUploadCacheKey($urn, $uploadId, 'parts'));
714
715
0 commit comments