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

Commit 290fc5e

Browse files
committed
Merge branch 't3node-clearconfigurationcache'
2 parents 41abc36 + 5f43e72 commit 290fc5e

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

Classes/Service/CacheApiService.php

Lines changed: 8 additions & 7 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

@@ -60,15 +63,13 @@ public function clearPageCache() {
6063
/**
6164
*
6265
*/
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');
66+
public function clearConfigurationCache() {
67+
if (version_compare(TYPO3_version, '6.0.0', '<')) {
68+
t3lib_extMgm::removeCacheFiles();
6869
}
69-
70+
$this->tce->clear_cacheCmd('temp_cached');
7071
}
7172

7273
}
7374

74-
?>
75+
?>

0 commit comments

Comments
 (0)