Issue Task Closed

#89257TypoScriptTemplateModuleController handles unused clear_all_cache paramter

Benjamin Franzke 09/25/19, 09:00 updated 12/23/19, 22:42

Description

The following code in typo3/sysext/tstemplate/Classes/Controller/TypoScriptTemplateModuleController.php is unused:

// Clear the cache if requested
if (($request->getParsedBody()['clear_all_cache'] ?? $request->getQueryParams()['clear_all_cache'] ?? false)) {
    $tce = GeneralUtility::makeInstance(DataHandler::class);
    $tce->start([], []);
    $tce->clear_cacheCmd('all');
}

The frontend part that issued the GET parameter clear_all_cache=1 was
removed in 2008 with the following commit:
https://github.com/TYPO3/TYPO3.CMS/commit/94fb08233d

The handling of this unused parameter should therefore be removed.

Reviews 1