Typo3: delete cache in extbase controller

February 22, 2016 at 10:15

The typo3 cache can be deleted in an extbase controller the following way:

use TYPO3\CMS\Extbase\Object\ObjectManager;

class Something {

    public function foo(){

      $objectManager = new ObjectManager();
      $clearCacheService = $objectManager->get('TYPO3\\CMS\\Install\\Service\\ClearCacheService');


I didn't find out yet how to delete just one certain cache, i.e. only the Frontend Cache.

Tags: cache extbase Typo3

Hinterlasse einen Kommentar: