TYPO3 CMS  TYPO3_6-2
CachingFrameworkDatabaseSchemaService.php
Go to the documentation of this file.
1 <?php
3 
21 
41  public function getCachingFrameworkRequiredDatabaseSchema() {
42  $cacheConfigurationBackup = $GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations'];
43  $GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['extbase_datamapfactory_datamap'] = array(
44  'groups' => array('system')
45  );
46  $extbaseObjectFakeName = uniqid('extbase_object');
47  $GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations'][$extbaseObjectFakeName] = array(
48  'groups' => array('system')
49  );
50  $GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['extbase_reflection'] = array(
51  'groups' => array('system')
52  );
53  $GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['extbase_typo3dbbackend_tablecolumns'] = array(
54  'groups' => array('system')
55  );
57  $cacheManager = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Core\\Cache\\CacheManager');
58  $cacheManager->setCacheConfigurations($GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']);
60  $sqlString = str_replace($extbaseObjectFakeName, 'extbase_object', $cacheSqlString);
61  $GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations'] = $cacheConfigurationBackup;
62  $cacheManager->setCacheConfigurations($GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']);
63 
64  return $sqlString;
65  }
66 
75  $sqlString[] = $this->getCachingFrameworkRequiredDatabaseSchema();
76  return array('sqlString' => $sqlString);
77  }
78 
79 }
if(!defined('TYPO3_MODE')) $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_userauth.php']['logoff_pre_processing'][]
static getDatabaseTableDefinitions()
Definition: Cache.php:92