[!!!][TASK] Move temp_CACHED_* files to caching framework
authorChristian Kuhn <lolli@schwarzbu.ch>
Sun, 24 Jun 2012 17:09:00 +0000 (19:09 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Thu, 28 Jun 2012 20:12:15 +0000 (22:12 +0200)
commit665a6f7905cd23b24350b011ad385d6604bcab72
tree048b72e310671c48ce0bcb2f5b43c65fae76f597
parent1231b048775f531fda97a7bd9148eeb05c8b0eb9
[!!!][TASK] Move temp_CACHED_* files to caching framework

After the basic bootstrap refactoring that moved the loading of
ext_tables.php and ext_localconf.php to class context, it is now easily
possible to put the former temp_CACHED_* files to the caching framework
as cached PHP code, next to the autoloader registry cache entry.

This patch introduces a new API to t3lib_extMgm to handle the
loading of ext_localconf, ext_tables and the global TYPO3_LOADED_EXT
array and removes the current handling that was cluttered throughout
the core.

The setting of TYPO3_CONF_VARS['SYS']['extCache'] is now deprecated and
unused. The bootstrap now decides based on its context, whether caching
of those files is used. This way we can for example run the install tool
in a fully uncached environment and can get rid of the nasty side effects
we had in this area in the past.

With a simple call to t3lib_extMgm::removeCacheFiles() all cache entries
in PHP code cache that are tagged with 'core' can be removed at once.
This currently affects the autoloader registry, the TYPO3_LOADED_EXT
entry, and the concatenated ext_localconf and ext_tables files.

The patch furthermore gets rid of the _CACHEFILE array key in
$GLOBALS['TYPO3_LOADED_EXT'] that worked as a kind of API to the calling
method to indicate if a concatenated ext_tables and ext_localconf file
is available.

Change-Id: Id00be5f24ec1698ed9126e61b229a718d6ca6741
Resolves: #38414
Releases: 6.0
Reviewed-on: http://review.typo3.org/12383
Reviewed-by: Philipp Gampe
Tested-by: Philipp Gampe
Reviewed-by: Wouter Wolters
Tested-by: Wouter Wolters
Reviewed-by: Susanne Moog
Tested-by: Susanne Moog
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
26 files changed:
t3lib/class.t3lib_autoloader.php
t3lib/class.t3lib_extmgm.php
t3lib/class.t3lib_tcemain.php
t3lib/extjs/class.t3lib_extjs_extdirectapi.php
t3lib/stddb/DefaultSettings.php
t3lib/stddb/tables.php
tests/Unit/t3lib/class.t3lib_autoloaderTest.php
tests/Unit/t3lib/class.t3lib_extmgmTest.php
typo3/classes/Bootstrap.php
typo3/classes/class.clearcachemenu.php
typo3/cli_dispatch.phpsh
typo3/init.php
typo3/install/index.php
typo3/sysext/aboutmodules/class.tx_aboutmodules_functions.php
typo3/sysext/cms/tslib/class.tslib_fe.php
typo3/sysext/cms/tslib/index_ts.php
typo3/sysext/em/classes/extensions/class.tx_em_extensions_list.php
typo3/sysext/em/classes/install/class.tx_em_install.php
typo3/sysext/em/classes/tools/class.tx_em_tools.php
typo3/sysext/em/classes/translations/class.tx_em_translations.php
typo3/sysext/impexp/app/index.php
typo3/sysext/install/mod/class.tx_install.php
typo3/sysext/install/updates/class.tx_coreupdates_migrateworkspaces.php
typo3/sysext/install/updates/class.tx_coreupdates_t3skin.php
typo3/sysext/lang/locallang_csh_corebe.xlf
typo3/sysext/saltedpasswords/classes/class.tx_saltedpasswords_autoloader.php