ClearCacheService

readonly class \TYPO3\CMS\Install\Service\ClearCacheService

Basic service to clear caches within the install tool.

Table of Contents

Methods

__construct()  : mixed
clearAll()  : void
This clear cache implementation follows a pretty brutal approach.

Methods

clearAll()

This clear cache implementation follows a pretty brutal approach.

public clearAll() : void

Goal is to reliably get rid of cache entries, even if some broken extension is loaded that would kill the backend 'clear cache' action.

Therefore, 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_localconf of extensions are loaded, those may register additional caches in the caching framework with different backend. All caches are then flushed through the CacheFlusher, which dispatches the cache flush events, so that listeners (for example a CDN purge) also react to a flush from the install tool.

On this page