aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2025-06-12 19:52:32 +0200
committerRobin Appelman <robin@icewind.nl>2025-06-12 19:52:32 +0200
commite15fb56e6a9a0f4d04fb0f5defbdacda3f77b8af (patch)
tree9013333ca3636394f982bdfb394757f8fa455e3f
parent763873e1526e8a4755a560b3daa4357fd607c15d (diff)
downloadnextcloud-server-objectstore-touch-double-cache.tar.gz
nextcloud-server-objectstore-touch-double-cache.zip
fix: remove double cache write in ObjectStoreStorage::touchobjectstore-touch-double-cache
the file_put_contents already puts all of those values into the cache Signed-off-by: Robin Appelman <robin@icewind.nl>
-rw-r--r--lib/private/Files/ObjectStore/ObjectStoreStorage.php10
1 files changed, 0 insertions, 10 deletions
diff --git a/lib/private/Files/ObjectStore/ObjectStoreStorage.php b/lib/private/Files/ObjectStore/ObjectStoreStorage.php
index 36b1a7a1c95..752c3cf4fb7 100644
--- a/lib/private/Files/ObjectStore/ObjectStoreStorage.php
+++ b/lib/private/Files/ObjectStore/ObjectStoreStorage.php
@@ -413,16 +413,6 @@ class ObjectStoreStorage extends \OC\Files\Storage\Common implements IChunkedFil
//create a empty file, need to have at least on char to make it
// work with all object storage implementations
$this->file_put_contents($path, ' ');
- $mimeType = \OC::$server->getMimeTypeDetector()->detectPath($path);
- $stat = [
- 'etag' => $this->getETag($path),
- 'mimetype' => $mimeType,
- 'size' => 0,
- 'mtime' => $mtime,
- 'storage_mtime' => $mtime,
- 'permissions' => \OCP\Constants::PERMISSION_ALL - \OCP\Constants::PERMISSION_CREATE,
- ];
- $this->getCache()->put($path, $stat);
} catch (\Exception $ex) {
$this->logger->error(
'Could not create object for ' . $path,