[opencms-dev] the cache ...

ruben malchow r_malchow at web.de
Mon Oct 9 14:08:31 CEST 2006



soooo ... that would be:

   OpenCms.fireCmsEvent(
        new CmsEvent(
            I_CmsEventListener.EVENT_FLEX_CACHE_CLEAR,
            Collections.singletonMap("action", new 
Integer(CmsFlexCache.CLEAR_ALL))
        )
   );

... that really is quite easy. thanks!

.rm


Joachim Arrasz schrieb:
> Hi,
>   
>> hmm ... so how exactly do i obtain a reference to the cache thingy? that
>> is: i want to be able to programmatically clear all caches. say i have a
>> module that wants to flush all caches every 20 minutes. what should it do?
>>
>> regards,
>>     
>
> have a look into FlexCache Admin JSP :)))) quite easy *g*
>
> Regards Achim
>
>   




More information about the opencms-dev mailing list