From adbee4c50c2001d654119d8908fe1219b2e7c9e2 Mon Sep 17 00:00:00 2001
From: Christian Kuhn <lolli@schwarzbu.ch>
Date: Tue, 15 Nov 2022 16:34:17 +0100
Subject: [PATCH] [BUGFIX] Avoid duplicate typoscript cache configuration

The default configuration of new typoscript
cache has been accidently added twice: In
ext:frontend ext_localconf.php and in
DefaultConfiguration.php.

Remove the one from ext:frontend.

Resolves: #99095
Related: #97816
Releases: main
Change-Id: I94eff13d894b9e22bc61b61fb29546dcfd695d96
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/76610
Tested-by: Benni Mack <benni@typo3.org>
Reviewed-by: Benni Mack <benni@typo3.org>
Tested-by: Jochen <rothjochen@gmail.com>
Reviewed-by: Jochen <rothjochen@gmail.com>
Tested-by: core-ci <typo3@b13.com>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
---
 typo3/sysext/frontend/ext_localconf.php | 13 -------------
 1 file changed, 13 deletions(-)

diff --git a/typo3/sysext/frontend/ext_localconf.php b/typo3/sysext/frontend/ext_localconf.php
index 82d8454d097b..381413ec5d20 100644
--- a/typo3/sysext/frontend/ext_localconf.php
+++ b/typo3/sysext/frontend/ext_localconf.php
@@ -2,8 +2,6 @@
 
 declare(strict_types=1);
 
-use TYPO3\CMS\Core\Cache\Backend\SimpleFileBackend;
-use TYPO3\CMS\Core\Cache\Frontend\PhpFrontend;
 use TYPO3\CMS\Core\Utility\ExtensionManagementUtility;
 use TYPO3\CMS\Frontend\Controller\ShowImageController;
 use TYPO3\CMS\Frontend\Hooks\TreelistCacheUpdateHooks;
@@ -13,17 +11,6 @@ defined('TYPO3') or die();
 // Register eID provider for showpic
 $GLOBALS['TYPO3_CONF_VARS']['FE']['eID_include']['tx_cms_showpic'] = ShowImageController::class . '::processRequest';
 
-// Register TypoScript caching
-if (!is_array($GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['typoscript'] ?? null)) {
-    $GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['typoscript'] = [
-        'frontend' => PhpFrontend::class,
-        'backend' => SimpleFileBackend::class,
-        'groups' => [
-            'pages',
-        ],
-    ];
-}
-
 ExtensionManagementUtility::addUserTSConfig('
   options.saveDocView = 1
   options.saveDocNew = 1
-- 
GitLab