From 7912da241716fdc1a36bb3bc1d90ce5ba680b2e2 Mon Sep 17 00:00:00 2001 From: Stefan Froemken Date: Wed, 13 May 2026 10:36:42 +0200 Subject: [PATCH] [BUGFIX] Always clear extbase's cache after building proxy classes The datamap cache must be restored as soon as proxy classes are built because otherwise it can fail because the information is not available how to map stuff Resolves: #42 --- Classes/Cache/ClassCacheManager.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Classes/Cache/ClassCacheManager.php b/Classes/Cache/ClassCacheManager.php index e4983fa..41313be 100644 --- a/Classes/Cache/ClassCacheManager.php +++ b/Classes/Cache/ClassCacheManager.php @@ -24,7 +24,9 @@ use Evoweb\Extender\Parser\FileSegments; use Exception; use Symfony\Component\DependencyInjection\Attribute\Autowire; +use TYPO3\CMS\Core\Cache\CacheManager; use TYPO3\CMS\Core\Cache\Frontend\FrontendInterface; +use TYPO3\CMS\Core\Utility\GeneralUtility; class ClassCacheManager { @@ -110,6 +112,7 @@ protected function addFileToCache(string $cacheEntryIdentifier, string $code): v { try { $this->classCache->set($cacheEntryIdentifier, $code); + GeneralUtility::makeInstance(CacheManager::class)->getCache('extbase')->flush(); } catch (Exception) { } }