From 73dd5ead08c82ee9dfe2f8983af83b489049a92a Mon Sep 17 00:00:00 2001 From: Oliver Hader <oliver@typo3.org> Date: Tue, 25 Oct 2011 00:34:45 +0200 Subject: [PATCH] [BUGFIX] Caching tables of new extensions are not created Creating the caching tables of an extension that has been installed in the same process does not work. Since the cachingConfiguration of the new extension is not forwarded to the cache manager, the new tables are just not known there. Change-Id: I0e72cffc43165be30bde6e7f3ec2c19c1f668bb2 Fixes: #31249 Reviewed-on: http://review.typo3.org/6274 Reviewed-by: Christian Kuhn Tested-by: Christian Kuhn Reviewed-by: Xavier Perseguers Tested-by: Xavier Perseguers --- typo3/sysext/em/classes/install/class.tx_em_install.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/typo3/sysext/em/classes/install/class.tx_em_install.php b/typo3/sysext/em/classes/install/class.tx_em_install.php index 0b99f57dccc4..80f1f2997564 100644 --- a/typo3/sysext/em/classes/install/class.tx_em_install.php +++ b/typo3/sysext/em/classes/install/class.tx_em_install.php @@ -1624,6 +1624,12 @@ class tx_em_Install { function forceDBupdates($extKey, $extInfo) { // Updating tables and fields? if (is_array($extInfo['files']) && in_array('ext_tables.sql', $extInfo['files'])) { + // Update the cache configurations with information of new extensions, + // that have been installed during the current process + $GLOBALS['typo3CacheManager']->setCacheConfigurations( + $GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations'] + ); + $fileContent = t3lib_div::getUrl(tx_em_Tools::getExtPath($extKey, $extInfo['type']) . 'ext_tables.sql'); $fileContent .= t3lib_cache::getDatabaseTableDefinitions(); @@ -1674,4 +1680,4 @@ if (defined('TYPO3_MODE') && isset($GLOBALS['TYPO3_CONF_VARS'][TYPO3_MODE]['XCLA include_once($GLOBALS['TYPO3_CONF_VARS'][TYPO3_MODE]['XCLASS']['typo3/sysext/em/classes/install/class.tx_em_install.php']); } -?> +?> \ No newline at end of file -- GitLab