Skip to content

Commit cdea24b

Browse files
authored
[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
1 parent 4d4a9dd commit cdea24b

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

Classes/Utility/ClassCacheManager.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ public function reBuild()
9898
$cacheEntryIdentifier = 'tx_news_' . strtolower(str_replace('/', '_', $key));
9999
try {
100100
$this->classCache->set($cacheEntryIdentifier, $code);
101+
GeneralUtility::makeInstance(CacheManager::class)->getCache('extbase')->flush();
101102
} catch (\Exception $e) {
102103
throw new \Exception($e->getMessage(), 2006286512);
103104
}

0 commit comments

Comments
 (0)