|
|
@@ -49,38 +49,12 @@ class OtCacheManager
|
|
|
|
|
|
/**
|
|
|
* Clear cache framework and opcode caches
|
|
|
- * (@see TYPO3\CMS\Install\Controller\MaintenanceController )
|
|
|
+ *
|
|
|
+ * @see TYPO3\CMS\Install\Controller\MaintenanceController
|
|
|
*/
|
|
|
- public static function clearAllCache(): ResponseInterface
|
|
|
+ public static function clearAllCache()
|
|
|
{
|
|
|
GeneralUtility::makeInstance(ClearCacheService::class)->clearAll();
|
|
|
GeneralUtility::makeInstance(OpcodeCacheService::class)->clearAllActive();
|
|
|
}
|
|
|
-
|
|
|
- /**
|
|
|
- * Clear typo3temp/assets
|
|
|
- * (@see TYPO3\CMS\Install\Controller\MaintenanceController )
|
|
|
- */
|
|
|
- public static function clearAssetsTempfiles()
|
|
|
- {
|
|
|
- $typo3tempFileService = GeneralUtility::makeInstance(Typo3tempFileService::class);
|
|
|
-
|
|
|
- try {
|
|
|
- $typo3tempFileService->clearAssetsFolder("/typo3temp/assets/css");
|
|
|
- } catch (RuntimeException $e) {
|
|
|
- // 1501781454 code means directory does not exist, we can ignore this error
|
|
|
- if ($e->getCode() != 1501781454) {
|
|
|
- throw $e;
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- try {
|
|
|
- $typo3tempFileService->clearAssetsFolder("/typo3temp/assets/js");
|
|
|
- } catch (RuntimeException $e) {
|
|
|
- // 1501781454 code means directory does not exist, we can ignore this error
|
|
|
- if ($e->getCode() != 1501781454) {
|
|
|
- throw $e;
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
}
|