Skip to content
This repository was archived by the owner on Aug 15, 2023. It is now read-only.

Commit 671373c

Browse files
author
Steffen Müller
committed
cache:clearconfigurationcache fails in TYPO3 < 6.0
1 parent 6a76175 commit 671373c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Classes/Service/CacheApiService.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,9 @@ public function initializeObject() {
4747
* Clear all caches
4848
*/
4949
public function clearAllCaches() {
50+
if (version_compare(TYPO3_version, '6.0.0', '<')) {
51+
t3lib_extMgm::removeCacheFiles();
52+
}
5053
$this->tce->clear_cacheCmd('all');
5154
}
5255

@@ -61,6 +64,9 @@ public function clearPageCache() {
6164
*
6265
*/
6366
public function clearConfigurationCache() {
67+
if (version_compare(TYPO3_version, '6.0.0', '<')) {
68+
t3lib_extMgm::removeCacheFiles();
69+
}
6470
$this->tce->clear_cacheCmd('temp_cached');
6571
}
6672

0 commit comments

Comments
 (0)