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

Commit 96c70e0

Browse files
committed
Fix #9: cache:clearconfigurationcache fails in TYPO3 < 6.0
1 parent 6a76175 commit 96c70e0

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

Classes/Service/CacheApiService.php

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,13 @@ public function clearPageCache() {
6060
/**
6161
*
6262
*/
63-
public function clearConfigurationCache() {
64-
$this->tce->clear_cacheCmd('temp_cached');
63+
public function clearConfigurationCache() {
64+
if (verison_compare(TYPO3_version, '6.0.0', '>=')) {
65+
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::removeCacheFiles();
66+
} else {
67+
$this->tce->clear_cacheCmd('temp_cached');
68+
}
69+
6570
}
6671

6772
}

0 commit comments

Comments
 (0)