diff options
author | Andy Scherzinger <info@andy-scherzinger.de> | 2025-06-18 22:53:54 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-06-18 22:53:54 +0200 |
commit | 419e0a5527fb93eaef3ba894546fe8cf91cc2bc0 (patch) | |
tree | b9190530d29b128b73d5bc44719f3a35866108d9 | |
parent | f05f79ae92091cb266ed46ab6d6b2bad7cfa6f59 (diff) | |
parent | 2e1c316582977846a3bc3907491a1eccf31e5196 (diff) | |
download | nextcloud-server-feat/package-node-npm-engines-update.tar.gz nextcloud-server-feat/package-node-npm-engines-update.zip |
Merge pull request #53462 from nextcloud/objectstore-touch-double-cachefeat/package-node-npm-engines-update
fix: remove double cache write in ObjectStoreStorage::touch
-rw-r--r-- | lib/private/Files/ObjectStore/ObjectStoreStorage.php | 10 |
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, |