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

Commit 91b1a24

Browse files
committed
[BUGFIX] Changed OpcodeCacheUtility being a service class in TYPO3 7.4
1 parent 16322f9 commit 91b1a24

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Classes/Service/CacheApiService.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,10 @@ public function clearAllExceptPageCache() {
180180
* @return void
181181
*/
182182
protected function clearAllActiveOpcodeCacheWrapper($fileAbsPath) {
183-
\TYPO3\CMS\Core\Utility\OpcodeCacheUtility::clearAllActive($fileAbsPath);
183+
if (version_compare(TYPO3_version, '7.4.0', '<')) {
184+
\TYPO3\CMS\Core\Utility\OpcodeCacheUtility::clearAllActive($fileAbsPath);
185+
} else {
186+
\TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\CMS\Core\Service\OpcodeCacheService')->clearAllActive($fileAbsPath);
187+
}
184188
}
185189
}

0 commit comments

Comments
 (0)