diff --git a/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/TcaSelectItemsTest.php b/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/TcaSelectItemsTest.php index 0bc4d41f1a66820af41c5e5102a479677cf67cde..4fdc525be055e48b243d4f0beba0910c88dcd5d5 100644 --- a/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/TcaSelectItemsTest.php +++ b/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/TcaSelectItemsTest.php @@ -576,11 +576,6 @@ class TcaSelectItemsTest extends UnitTestCase $languageService->loadSingleTableDescription(Argument::cetera())->willReturn(null); $languageService->sL(Argument::cetera())->willReturnArgument(0); - // Needed to suppress a cache in xml2array - /** @var DatabaseConnection|ObjectProphecy $database */ - $database = $this->prophesize(DatabaseConnection::class); - $GLOBALS['TYPO3_DB'] = $database->reveal(); - $expectedItems = [ 0 => [ 0 => 'fooTableTitle aFlexFieldTitle dummy', diff --git a/typo3/sysext/core/Classes/Utility/GeneralUtility.php b/typo3/sysext/core/Classes/Utility/GeneralUtility.php index 473dac636a1be263e4fc6e03ce7f2139057eaa6b..6d4883ae8027f437c573f2291bbc525193667623 100755 --- a/typo3/sysext/core/Classes/Utility/GeneralUtility.php +++ b/typo3/sysext/core/Classes/Utility/GeneralUtility.php @@ -1775,13 +1775,7 @@ class GeneralUtility if (!empty($firstLevelCache[$identifier])) { $array = $firstLevelCache[$identifier]; } else { - // Look up in second level cache - // @todo: Is this cache really required? It basically substitutes a little cpu work with a db query? - $array = PageRepository::getHash($identifier, 0); - if (!is_array($array)) { - $array = self::xml2arrayProcess($string, $NSprefix, $reportDocTag); - PageRepository::storeHash($identifier, $array, 'ident_xml2array'); - } + $array = self::xml2arrayProcess($string, $NSprefix, $reportDocTag); // Store content in first level cache $firstLevelCache[$identifier] = $array; }