From 6208b54f9108adedeb12662af5ed65c58be902be Mon Sep 17 00:00:00 2001
From: Nikita Hovratov <nikita.h@live.de>
Date: Wed, 14 Feb 2024 01:25:14 +0100
Subject: [PATCH] [BUGFIX] Fix mixed up `$cachingEnabled` property in
 BootCompletedEvent

The BootCompletedEvent receives the constructor argument
`$cachingEnabled`. However, the variable `$disableCaching` was passed
in Bootstrap::init() which is the exact opposite. In fact, the caching
is logically always enabled when reaching the dispatched event.

Resolves: #103114
Releases: main, 12.4
Change-Id: I81c26027bb8e2cb4009fbfcd0bfd6015bd9c1dec
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/82973
Reviewed-by: Nikita Hovratov <nikita.h@live.de>
Tested-by: core-ci <typo3@b13.com>
Tested-by: Nikita Hovratov <nikita.h@live.de>
---
 typo3/sysext/core/Classes/Core/Bootstrap.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/typo3/sysext/core/Classes/Core/Bootstrap.php b/typo3/sysext/core/Classes/Core/Bootstrap.php
index bd4501fe0bd1..4d26cbe27926 100644
--- a/typo3/sysext/core/Classes/Core/Bootstrap.php
+++ b/typo3/sysext/core/Classes/Core/Bootstrap.php
@@ -151,7 +151,7 @@ class Bootstrap
         static::loadBaseTca(true, $coreCache);
         static::checkEncryptionKey();
         $bootState->complete = true;
-        $eventDispatcher->dispatch(new BootCompletedEvent($disableCaching));
+        $eventDispatcher->dispatch(new BootCompletedEvent(true));
 
         return $container;
     }
-- 
GitLab