Skip to content
Snippets Groups Projects
Commit 73dd5ead authored by Oliver Hader's avatar Oliver Hader Committed by Xavier Perseguers
Browse files

[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
parent d41d7a6e
Branches
Tags
No related merge requests found
......@@ -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
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