Skip to content
Snippets Groups Projects
Commit 1b56da9f authored by Benni Mack's avatar Benni Mack Committed by Wouter Wolters
Browse files

[TASK] Cleanup Clear Cache Menu commands

The Clear Cache Menu on top of the TYPO3 Backend contains
the URLs to call tce_db which has an additional GET
parameter called "ajaxCall" which is not evaluated anymore
and can be removed.

Further cleanup could use the ajax action to fetch additional
data and evalute that data.

Resolves: #75246
Releases: master
Change-Id: I9b5f5816c5d3ac9d72cf0b382b5646e7631d0afe
Reviewed-on: https://review.typo3.org/47377


Reviewed-by: default avatarMichael Oehlhof <typo3@oehlhof.de>
Tested-by: default avatarMichael Oehlhof <typo3@oehlhof.de>
Reviewed-by: default avatarWouter Wolters <typo3@wouterwolters.nl>
Tested-by: default avatarWouter Wolters <typo3@wouterwolters.nl>
parent ce179016
Branches
Tags
No related merge requests found
......@@ -61,7 +61,7 @@ class ClearCacheToolbarItem implements ToolbarItemInterface
'id' => 'pages',
'title' => htmlspecialchars($languageService->sL('LLL:EXT:lang/locallang_core.xlf:flushPageCachesTitle')),
'description' => htmlspecialchars($languageService->sL('LLL:EXT:lang/locallang_core.xlf:flushPageCachesDescription')),
'href' => BackendUtility::getModuleUrl('tce_db', ['vC' => $backendUser->veriCode(), 'cacheCmd' => 'pages', 'ajaxCall' => 1]),
'href' => BackendUtility::getModuleUrl('tce_db', ['vC' => $backendUser->veriCode(), 'cacheCmd' => 'pages']),
'icon' => $this->iconFactory->getIcon('actions-system-cache-clear-impact-low', Icon::SIZE_SMALL)->render()
);
$this->optionValues[] = 'pages';
......@@ -73,7 +73,7 @@ class ClearCacheToolbarItem implements ToolbarItemInterface
'id' => 'all',
'title' => htmlspecialchars($languageService->sL('LLL:EXT:lang/locallang_core.xlf:flushGeneralCachesTitle')),
'description' => htmlspecialchars($languageService->sL('LLL:EXT:lang/locallang_core.xlf:flushGeneralCachesDescription')),
'href' => BackendUtility::getModuleUrl('tce_db', ['vC' => $backendUser->veriCode(), 'cacheCmd' => 'all', 'ajaxCall' => 1]),
'href' => BackendUtility::getModuleUrl('tce_db', ['vC' => $backendUser->veriCode(), 'cacheCmd' => 'all']),
'icon' => $this->iconFactory->getIcon('actions-system-cache-clear-impact-medium', Icon::SIZE_SMALL)->render()
);
$this->optionValues[] = 'all';
......@@ -92,7 +92,7 @@ class ClearCacheToolbarItem implements ToolbarItemInterface
'id' => 'system',
'title' => htmlspecialchars($languageService->sL('LLL:EXT:lang/locallang_core.xlf:flushSystemCachesTitle')),
'description' => htmlspecialchars($languageService->sL('LLL:EXT:lang/locallang_core.xlf:flushSystemCachesDescription')),
'href' => BackendUtility::getModuleUrl('tce_db', ['vC' => $backendUser->veriCode(), 'cacheCmd' => 'system', 'ajaxCall' => 1]),
'href' => BackendUtility::getModuleUrl('tce_db', ['vC' => $backendUser->veriCode(), 'cacheCmd' => 'system']),
'icon' => $this->iconFactory->getIcon('actions-system-cache-clear-impact-high', Icon::SIZE_SMALL)->render()
);
$this->optionValues[] = 'system';
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment