2 namespace TYPO3\CMS\Scheduler\Task;
42 $cacheConfigurations =
$GLOBALS[
'TYPO3_CONF_VARS'][
'SYS'][
'caching'][
'cacheConfigurations'];
43 if (is_array($cacheConfigurations)) {
46 foreach ($cacheConfigurations as $cacheName => $cacheConfiguration) {
48 $usedCacheBackend = $cacheConfiguration[
'backend'];
49 if (in_array($usedCacheBackend, $this->selectedBackends)) {
50 \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Core\Cache\CacheManager::class)->getCache($cacheName)->collectGarbage();