Issue Bug New Orphaned

#108170DI-cache can not be configured, because hardcoded

Ralf Hübner 11/18/25, 11:28 updated 11/21/25, 09:12

Description

In the Bootstrap-Class, the configuration for DI-caches are hardcoded and ‘options’ are empty.
https://github.com/TYPO3/typo3/blob/80c54568a4fc1246fad59b7e0b99f6d7d0d52266/typo3/sysext/core/Classes/Core/Bootstrap.php#L353

I have to move the var/cache dir to another location, because of a Multi-Pod Environment to avoid cache-crashes during cache-flushes.
For all cache types with “File/SimpleFilebackend” there is a option “cacheDirectory” that worked fine so far.

The DI cache (/var/www/html/releases/417/var/cache/code/di/DependencyInjectionContainer_310013f5e81206c365af99087e70c5038efb75c5.php) still in var/cache folder and with high traffic and a cache-flush some requests get a 500-error:

Failed opening required ‘/var/www/html/releases/417/var/cache/code/di/DependencyInjectionContainer_310013f5e81206c365af99087e70c5038efb75c5.php’

It should be able to configure the “cacheDirectory” for DI-Cache, is this possible?

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.

Fix this issue

Start the commit message of your patch with this. Add what the patch does, and the versions it goes to in "Releases:". How to create a patch

Commit message
[BUGFIX] DI-cache can not be configured, because hardcoded Resolves: #108170 Releases: main