diff --git a/typo3/sysext/core/Classes/Resource/StorageRepository.php b/typo3/sysext/core/Classes/Resource/StorageRepository.php index 97fc2bbbb4a6..8148b05c1ad9 100644 --- a/typo3/sysext/core/Classes/Resource/StorageRepository.php +++ b/typo3/sysext/core/Classes/Resource/StorageRepository.php @@ -230,6 +230,9 @@ public function createLocalStorage($name, $basePath, $pathType, $description = ' ->getConnectionForTable($this->table); $dbConnection->insert($this->table, $field_values); + // Flush local resourceStorage cache so the storage can be accessed during the same request right away + $this->storageRowCache = null; + return (int)$dbConnection->lastInsertId($this->table); }