TYPO3 CMS  TYPO3_6-2
TYPO3\CMS\Core\Cache\Cache Class Reference
Inheritance diagram for TYPO3\CMS\Core\Cache\Cache:
t3lib_cache

Public Member Functions

 addCachingFrameworkRequiredDatabaseSchemaToTablesDefinition (array $sqlString, $extensionKey)
 

Static Public Member Functions

static initializeCachingFramework ()
 
static isCachingFrameworkInitialized ()
 
static flagCachingFrameworkForReinitialization ()
 
static getDatabaseTableDefinitions ()
 

Static Protected Attributes

static $isCachingFrameworkInitialized = FALSE
 
static $cacheManager
 
static $cacheFactory
 

Detailed Description

A cache handling helper class

Author
Ingo Renner ingo@.nosp@m.typo.nosp@m.3.org

Definition at line 23 of file Cache.php.

Member Function Documentation

◆ addCachingFrameworkRequiredDatabaseSchemaToTablesDefinition()

TYPO3\CMS\Core\Cache\Cache::addCachingFrameworkRequiredDatabaseSchemaToTablesDefinition ( array  $sqlString,
  $extensionKey 
)

A slot method to inject the required caching framework database tables to the tables definitions string

Parameters
array$sqlString
string$extensionKey
Returns
array

Definition at line 111 of file Cache.php.

References $GLOBALS.

◆ flagCachingFrameworkForReinitialization()

static TYPO3\CMS\Core\Cache\Cache::flagCachingFrameworkForReinitialization ( )
static

Resets the isCachingFrameworkInitialized state Beware! This is not public API and necessary for edge cases in the install tool.

Returns
void

Definition at line 76 of file Cache.php.

References TYPO3\CMS\Core\Utility\GeneralUtility\removeSingletonInstance().

Referenced by TYPO3\CMS\Install\Service\ClearCacheService\clearAll().

◆ getDatabaseTableDefinitions()

static TYPO3\CMS\Core\Cache\Cache::getDatabaseTableDefinitions ( )
static

Helper method for install tool and extension manager to determine required table structure of all caches that depend on it

This is not a public API method!

Returns
string Required table structure of all registered caches

Definition at line 92 of file Cache.php.

References $backend, and $GLOBALS.

◆ initializeCachingFramework()

static TYPO3\CMS\Core\Cache\Cache::initializeCachingFramework ( )
static

Initializes the caching framework by loading the cache manager and factory into the global context.

Returns
CacheManager

Definition at line 46 of file Cache.php.

References $GLOBALS, and TYPO3\CMS\Core\Utility\GeneralUtility\setSingletonInstance().

Referenced by TYPO3\CMS\Core\Core\Bootstrap\initializeCachingFramework().

◆ isCachingFrameworkInitialized()

static TYPO3\CMS\Core\Cache\Cache::isCachingFrameworkInitialized ( )
static

Determines whether the caching framework is initialized. The caching framework could be disabled for the core but used by an extension.

Returns
boolean True if caching framework is initialized

Definition at line 66 of file Cache.php.

Member Data Documentation

◆ $cacheFactory

TYPO3\CMS\Core\Cache\Cache::$cacheFactory
staticprotected

Definition at line 38 of file Cache.php.

◆ $cacheManager

TYPO3\CMS\Core\Cache\Cache::$cacheManager
staticprotected

Definition at line 33 of file Cache.php.

◆ $isCachingFrameworkInitialized

TYPO3\CMS\Core\Cache\Cache::$isCachingFrameworkInitialized = FALSE
staticprotected

Definition at line 28 of file Cache.php.