Project

General

Profile

Bug #19694 ยป 9925.diff

Administrator Admin, 2008-12-12 10:30

View differences:

typo3/sysext/cms/tslib/class.tslib_fe.php (working copy)
t3lib_div::callUserFunction($_funcRef,$_params,$this);
}
}
$this->initCaches();
}
/**
......
*
********************************************/
/**
* Include files necessary for the TYPO3 caching framework. This method will
* go away when autoloading is implemented.
*
* @return void
*/
protected function includeCaches() {
$GLOBALS['TT']->push('Including the Caching System','');
t3lib_div::requireOnce(PATH_t3lib . 'class.t3lib_cache.php');
t3lib_div::requireOnce(PATH_t3lib . 'cache/class.t3lib_cache_abstractbackend.php');
t3lib_div::requireOnce(PATH_t3lib . 'cache/class.t3lib_cache_abstractcache.php');
t3lib_div::requireOnce(PATH_t3lib . 'cache/class.t3lib_cache_exception.php');
t3lib_div::requireOnce(PATH_t3lib . 'cache/class.t3lib_cache_factory.php');
t3lib_div::requireOnce(PATH_t3lib . 'cache/class.t3lib_cache_manager.php');
t3lib_div::requireOnce(PATH_t3lib . 'cache/class.t3lib_cache_variablecache.php');
t3lib_div::requireOnce(PATH_t3lib . 'cache/exception/class.t3lib_cache_exception_classalreadyloaded.php');
t3lib_div::requireOnce(PATH_t3lib . 'cache/exception/class.t3lib_cache_exception_duplicateidentifier.php');
t3lib_div::requireOnce(PATH_t3lib . 'cache/exception/class.t3lib_cache_exception_invalidbackend.php');
t3lib_div::requireOnce(PATH_t3lib . 'cache/exception/class.t3lib_cache_exception_invalidcache.php');
t3lib_div::requireOnce(PATH_t3lib . 'cache/exception/class.t3lib_cache_exception_invaliddata.php');
t3lib_div::requireOnce(PATH_t3lib . 'cache/exception/class.t3lib_cache_exception_nosuchcache.php');
$GLOBALS['TT']->pull();
}
/**
* Initializes the caching system.
*
* @return void
*/
public function initCaches() {
protected function initCaches() {
$this->includeCaches();
$GLOBALS['TT']->push('Initializing the Caching System','');
$GLOBALS['typo3CacheManager'] = t3lib_div::makeInstance('t3lib_cache_Manager');
$cacheFactoryClass = t3lib_div::makeInstanceClassName('t3lib_cache_Factory');
$GLOBALS['typo3CacheFactory'] = new $cacheFactoryClass($GLOBALS['typo3CacheManager']);
try {
$this->pageCache = $GLOBALS['typo3CacheManager']->getCache(
'cache_pages'
......
t3lib_cache::initPageSectionCache();
t3lib_cache::initContentHashCache();
$GLOBALS['TT']->pull();
}
/**
typo3/sysext/cms/tslib/index_ts.php (working copy)
$TT->pull();
// ***********************************
// Initializing the Caching System
// ***********************************
$TT->push('Initializing the Caching System','');
// TODO implement autoloading so that we only require stuff we really need
require_once(PATH_t3lib . 'class.t3lib_cache.php');
require_once(PATH_t3lib . 'cache/class.t3lib_cache_abstractbackend.php');
require_once(PATH_t3lib . 'cache/class.t3lib_cache_abstractcache.php');
require_once(PATH_t3lib . 'cache/class.t3lib_cache_exception.php');
require_once(PATH_t3lib . 'cache/class.t3lib_cache_factory.php');
require_once(PATH_t3lib . 'cache/class.t3lib_cache_manager.php');
require_once(PATH_t3lib . 'cache/class.t3lib_cache_variablecache.php');
require_once(PATH_t3lib . 'cache/exception/class.t3lib_cache_exception_classalreadyloaded.php');
require_once(PATH_t3lib . 'cache/exception/class.t3lib_cache_exception_duplicateidentifier.php');
require_once(PATH_t3lib . 'cache/exception/class.t3lib_cache_exception_invalidbackend.php');
require_once(PATH_t3lib . 'cache/exception/class.t3lib_cache_exception_invalidcache.php');
require_once(PATH_t3lib . 'cache/exception/class.t3lib_cache_exception_invaliddata.php');
require_once(PATH_t3lib . 'cache/exception/class.t3lib_cache_exception_nosuchcache.php');
$typo3CacheManager = t3lib_div::makeInstance('t3lib_cache_Manager');
$cacheFactoryClass = t3lib_div::makeInstanceClassName('t3lib_cache_Factory');
$typo3CacheFactory = new $cacheFactoryClass($typo3CacheManager);
unset($cacheFactoryClass);
$TT->pull();
// ***********************************
// Create $TSFE object (TSFE = TypoScript Front End)
// Connecting to database
// ***********************************
......
t3lib_div::_GP('MP'),
t3lib_div::_GP('RDCT')
);
$TSFE->initCaches();
if($TYPO3_CONF_VARS['FE']['pageUnavailable_force'] &&
!t3lib_div::cmpIP(t3lib_div::getIndpEnv('REMOTE_ADDR'), $TYPO3_CONF_VARS['SYS']['devIPmask'])) {
    (1-1/1)