ClearCacheService
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.
Table of Contents
Methods
- __construct() : mixed
- clearAll() : void
- This clear cache implementation follows a pretty brutal approach.
Methods
__construct()
public
__construct(LateBootService $lateBootService, FrontendInterface $dependencyInjectionCache) : mixed
Parameters
- $lateBootService : LateBootService
- $dependencyInjectionCache : FrontendInterface
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_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.