Skip to content
Snippets Groups Projects
Commit 6208b54f authored by Nikita Hovratov's avatar Nikita Hovratov
Browse files

[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: default avatarNikita Hovratov <nikita.h@live.de>
Tested-by: default avatarcore-ci <typo3@b13.com>
Tested-by: default avatarNikita Hovratov <nikita.h@live.de>
parent 29537318
No related merge requests found
......@@ -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;
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment