Quantcast
Channel: Insane in the Main Frame
Viewing all articles
Browse latest Browse all 310

Typo3: delete cache in extbase controller

$
0
0

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

  1. use TYPO3\CMS\Extbase\Object\ObjectManager;
  2. class Something {
  3. public function foo(){
  4. $objectManager = new ObjectManager();
  5. $clearCacheService = $objectManager->get('TYPO3\\CMS\\Install\\Service\\ClearCacheService');
  6. $clearCacheService->clearAll();
  7. }
  8. }

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


Viewing all articles
Browse latest Browse all 310

Latest Images

Trending Articles



Latest Images