[FLOW3-general] Clear Settings Cache from Application (not CLI)

Kim kimpixel+flow3 at gmail.com
Wed Feb 27 03:55:47 CET 2013


Am 27.02.2013 01:20, schrieb Kim:
> Hi List Members
>
> I build an Settings Editor (Like the ConstantEditor in Typo3 CMS) an i
> need to clear the Settings Cache from the saveAction.
>
> i try it with:
> $this->cacheManager->flushCaches();
>
> nothing happens!
>
> from CLI its necessary to use the modifier "-- force"
>
> This option ist not available in the "cacheManager"!!
>
> do anyone know what to do?
>
> Greetings
> Kim

Hello Fellas

I found a solution.
Sorry for be on edge.

********
Inject
\TYPO3\Flow\Core\Bootstrap
\TYPO3\Flow\Configuration\ConfigurationManager

then you can use:

if($this->bootstrap->getContext()->isProduction()){
     $this->configurationManager->flushConfigurationCache();
}







More information about the FLOW3-general mailing list