[FEATURE] Add a clear all cache button to install tool 33/22633/2
authorChristian Kuhn <lolli@schwarzbu.ch>
Sat, 27 Jul 2013 21:09:58 +0000 (23:09 +0200)
committerWouter Wolters <typo3@wouterwolters.nl>
Sun, 28 Jul 2013 12:00:33 +0000 (14:00 +0200)
commit9c6d50290ec4fc0cd9bff61f6959ae754cbe5e8c
treeef1f589f69bfe96587f7144f0ee7f7baf92a9b96
parentfa5fe2436d5381f966dc52fc151488b4309c78b2
[FEATURE] Add a clear all cache button to install tool

This implements a clear all cache functionality to the install tool.

The implementation is different from the existing backend solution
so that it at least partly clears caches even if some broken
extension is loaded that would kill the operation.

To achieve that, first a low level removal of typo3temp/Cache is
performed, then all table names starting with "cf_" are truncated
with direct database calls. After that ext_localconf and ext_tables
of extension are loaded (this may fatal) and the final cache
configuration is then feeded to the cache manager that executes
the usual flushCaches() call.

Change-Id: Ibd717b0d34bd5b8737a73acebf4632fed38c4d8c
Resolves: #50495
Releases: 6.2
Reviewed-on: https://review.typo3.org/22633
Reviewed-by: Susanne Moog
Tested-by: Susanne Moog
Reviewed-by: Wouter Wolters
Tested-by: Wouter Wolters
typo3/sysext/install/Classes/Controller/Action/Tool/ImportantActions.php
typo3/sysext/install/Classes/Service/ClearCacheService.php [new file with mode: 0644]
typo3/sysext/install/Resources/Private/Partials/Action/Tool/ImportantActions/ClearAllCache.html [new file with mode: 0644]
typo3/sysext/install/Resources/Private/Templates/Action/Tool/ImportantActions.html