diff --git a/t3lib/class.t3lib_extmgm.php b/t3lib/class.t3lib_extmgm.php index 6a7a13fe462156cc0a2416e6cbbf1022664a8a93..c32deda3658e4db3838d557a7281c451ea438eb6 100644 --- a/t3lib/class.t3lib_extmgm.php +++ b/t3lib/class.t3lib_extmgm.php @@ -212,12 +212,18 @@ final class t3lib_extMgm { if (!self::isLoaded($key)) { return ''; } + $runtimeCache = $GLOBALS['typo3CacheManager']->getCache('cache_runtime'); + $cacheIdentifier = 'extMgmExtVersion-' . $key; - $EM_CONF = array(); - $_EXTKEY = $key; - include(self::extPath($key) . 'ext_emconf.php'); + if (!($extensionVersion = $runtimeCache->get($cacheIdentifier))) { - return $EM_CONF[$key]['version']; + $EM_CONF = array(); + $_EXTKEY = $key; + include(self::extPath($key) . 'ext_emconf.php'); + $extensionVersion = $EM_CONF[$key]['version']; + $runtimeCache->set($cacheIdentifier, $extensionVersion); + } + return $extensionVersion; } @@ -244,7 +250,7 @@ final class t3lib_extMgm { public static function addTCAcolumns($table, $columnArray, $addTofeInterface = 0) { t3lib_div::loadTCA($table); if (is_array($columnArray) && is_array($GLOBALS['TCA'][$table]) && is_array($GLOBALS['TCA'][$table]['columns'])) { - // Candidate for t3lib_div::array_merge() if integer-keys will some day make trouble... + // Candidate for t3lib_div::array_merge() if integer-keys will some day make trouble... $GLOBALS['TCA'][$table]['columns'] = array_merge($GLOBALS['TCA'][$table]['columns'], $columnArray); if ($addTofeInterface) { $GLOBALS['TCA'][$table]['feInterface']['fe_admin_fieldList'] .= ',' . implode(',', array_keys($columnArray)); @@ -1205,8 +1211,8 @@ final class t3lib_extMgm { $pluginContent = trim(' plugin.' . $cN . $prefix . ' = USER' . ($cached ? '' : '_INT') . ' plugin.' . $cN . $prefix . ' { - includeLibs = ' . $GLOBALS['TYPO3_LOADED_EXT'][$key]['siteRelPath'] . $classFile . ' - userFunc = ' . $cN . $prefix . '->main + includeLibs = ' . $GLOBALS['TYPO3_LOADED_EXT'][$key]['siteRelPath'] . $classFile . ' + userFunc = ' . $cN . $prefix . '->main }'); self::addTypoScript($key, 'setup', ' # Setting ' . $key . ' plugin TypoScript