TYPO3 CMS  TYPO3_7-6
TYPO3\CMS\Install\Service\ClearCacheService Class Reference

Public Member Functions

 injectObjectManager (\TYPO3\CMS\Extbase\Object\ObjectManager $objectManager)
 
 clearAll ()
 

Protected Attributes

 $objectManager = null
 

Detailed Description

Basic service to clear caches within the install tool. This is NOT an API class, it is for internal use in the install tool only.

Definition at line 23 of file ClearCacheService.php.

Member Function Documentation

◆ clearAll()

TYPO3\CMS\Install\Service\ClearCacheService::clearAll ( )

This clear cache implementation follows a pretty brutal approach. Goal is to reliably get rid of cache entries, even if some broken extension is loaded that would kill the backend 'clear cache' action.

Therefor this method "knows" implementation details of the cache framework and uses them to clear all file based cache (typo3temp/Cache) and database caches (tables prefixed with cf_) manually.

After that ext_tables and ext_localconf of extensions are loaded, those may register additional caches in the caching framework with different backend, and will then clear them with the usual flush() method.

Returns
void

Definition at line 53 of file ClearCacheService.php.

References TYPO3\CMS\Core\Build\$bootstrap, $database, $GLOBALS, TYPO3\CMS\Core\Utility\GeneralUtility\flushDirectory(), and TYPO3\CMS\Core\Core\Bootstrap\getInstance().

◆ injectObjectManager()

TYPO3\CMS\Install\Service\ClearCacheService::injectObjectManager ( \TYPO3\CMS\Extbase\Object\ObjectManager  $objectManager)
Parameters
\TYPO3\CMS\Extbase\Object\ObjectManager$objectManager

Definition at line 33 of file ClearCacheService.php.

References TYPO3\CMS\Install\Service\ClearCacheService\$objectManager.

Member Data Documentation

◆ $objectManager

TYPO3\CMS\Install\Service\ClearCacheService::$objectManager = null
protected