[TASK] Invalidate autoloader cache in em
authorChristian Kuhn <lolli@schwarzbu.ch>
Thu, 14 Jul 2011 21:58:59 +0000 (23:58 +0200)
committerXavier Perseguers <typo3@perseguers.ch>
Fri, 15 Jul 2011 19:28:13 +0000 (21:28 +0200)
The autoloader cache should be invalidated by the extension manager
if installing new or removing old extension from extension list to
force a recalculation of available classes on next access.

Change-Id: I485dc62aa2d3644136392b7608c77a11cf408332
Resolves: #28219
Related: #28063
Related: #28186
Related: #28187
Reviewed-on: http://review.typo3.org/3339
Reviewed-by: Philipp Gampe
Tested-by: Philipp Gampe
Reviewed-by: Stefan Neufeind
Tested-by: Stefan Neufeind
Reviewed-by: Xavier Perseguers
Tested-by: Xavier Perseguers
typo3/sysext/em/classes/install/class.tx_em_install.php

index b714672..ee83ebe 100644 (file)
@@ -1501,6 +1501,7 @@ class tx_em_Install {
                $GLOBALS['TYPO3_CONF_VARS']['EXT']['extList'] = $newExtList;
                $GLOBALS['TYPO3_CONF_VARS']['EXT']['extList_FE'] = $strippedExtensionList;
                t3lib_extMgm::removeCacheFiles();
+               $GLOBALS['typo3CacheManager']->getCache('cache_phpcode')->flushByTag('t3lib_autoloader');
        }
 
        /**