Issue Bug Closed

#87546Please recreate all Caches after installing an extension

Stefan Froemken 01/25/19, 09:18 updated 03/10/20, 13:16

Description

Hello Core-Team,

I have registered a Cache which I need while processing TCA, but that Cache does not exists while installing my extension.

you have following lines in InstallUtilit:

public function reloadCaches()
{
    $this->reloadOpcache();
    \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::loadExtLocalconf(false);
    \TYPO3\CMS\Core\Core\Bootstrap::loadBaseTca(false);
    \TYPO3\CMS\Core\Core\Bootstrap::loadExtTables(false);
}

With loadExtLocalconf(false); my Cache will be Added to TYPO3_CONF_VARS, but CacheManager will not be called again, so while processing next line “loadBaseTca” TCA and Overrides will be loaded, but as my Cache is un-initialized an Exception will be thrown.

Stefan

Reviews 1