[TYPO3-dev] typo3 caching framework - own extension but prevent "Clear cache all"

Krystian Szymukowicz k.szymukowicz at gmail.com
Fri Mar 21 16:31:25 CET 2014


W dniu 2014-03-21 11:56, Helmut Hummel pisze:
> Hi!
>
> On 21.03.14 11:16, Krystian Szymukowicz wrote:
>
>> is there a way to use caching framework for own extension but prevent
>> "Clear cache all" from flushing the cache of my caching tables?
>>
>> I debugged caching framwork and it seems there is no such option.
>
> In 6.2 we introdcued caching groups.
>
> TYPO3 itself uses the groups: 'pages', 'all' and 'system'
> If you assign your cache another group name, then you can flush these
> caches with:
>
> GeneralUtility::makeInstance('TYPO3\\CMS\\Core\\Cache\\CacheManager')->flushCachesInGroup('myGroup');
>
>
>
> You can assing groups to your caches through configuration:
>
> 'cache_myExt' => array(
>      'options' => array(),
>      'groups' => array('foo', 'myGroup')
> ),
>
>


Thank you for answer!
This is exactly what I was looking for.
But I am on 6.1.7

So I need to solve it other way.

--
grtz
Krystian Szymukowicz




More information about the TYPO3-dev mailing list