Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to flush or update cache for page by id in TYPO3

I need to flush a cache for a specific page from TYPO3 version 8 backend in the Extension from my Controller. I found a solution for flushing all caches but this is the last option.

like image 412
Bjørson Bjørson Avatar asked Dec 02 '22 10:12

Bjørson Bjørson


1 Answers

GeneralUtility::makeInstance(\TYPO3\CMS\Core\Cache\CacheManager::class) ->flushCachesInGroupByTags('pages', [ 'pageId_'.$id ]);

like image 86
Christian Kuhn Avatar answered Dec 04 '22 03:12

Christian Kuhn