<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<TITLE>Nachricht</TITLE>
<META content="MSHTML 6.00.2800.1226" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#d8d0c8>
<DIV><SPAN class=924295715-22012004><FONT face=Arial color=#0000ff size=2>Only a
member of the "Administrator" group is allowed to generate the Flex Cache clear
event. If the event is generated by other users it's simply ignored.
</FONT></SPAN></DIV>
<DIV><SPAN class=924295715-22012004><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=924295715-22012004><FONT face=Arial color=#0000ff size=2>Are
you sure you need to clear the cache? I would think that changing the cache key
property value is the way to solve your problem.</FONT></SPAN></DIV>
<DIV><SPAN class=924295715-22012004><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=924295715-22012004><FONT face=Arial color=#0000ff size=2><!-- Converted from text/plain format --><BR>
<P><FONT size=2>Best Regards,<BR>Alex.<BR><BR>Alexander Kandzior<BR>Alkacon
Software - The OpenCms Experts<BR><A
href="http://www.alkacon.com/">http://www.alkacon.com</A></FONT>
</P></FONT></SPAN></DIV>
<DIV><SPAN class=924295715-22012004><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=924295715-22012004><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<BLOCKQUOTE dir=ltr
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
<DIV></DIV>
<DIV class=OutlookMessageHeader lang=de dir=ltr align=left><FONT face=Tahoma
size=2>-----Original Message-----<BR><B>From:</B>
opencms-dev-admin@opencms.org [mailto:opencms-dev-admin@opencms.org] <B>On
Behalf Of </B>Emiliano Viera<BR><B>Sent:</B> Thursday, January 22, 2004 3:28
PM<BR><B>To:</B> opencms-dev@opencms.org<BR><B>Subject:</B> Re: [opencms-dev]
Clear Flex Cache<BR><BR></FONT></DIV>
<DIV><FONT face=Arial size=2>I've tried 2 way to clear it. It doesn't give me
any error, but doesn't work. I'm checking it all the time with the
administrator page in the backoffice, and no matter how many times i use
my clear page, the cache count never turns to zero (unless i use the
buttons in the adm page)</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Here are my two tries: </FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>CmsJspActionElement cms = new
CmsJspActionElement(pageContext, request, response);<BR>CmsObject cmsObject =
cms.getCmsObject();</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>//Try #1<BR>A_OpenCms.fireCmsEvent(new
CmsEvent(cmsObject, I_CmsEventListener.EVENT_FLEX_CACHE_CLEAR,
Collections.singletonMap("action", new
Integer(CmsFlexCache.C_CLEAR_ALL))));</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>//Try #2<BR>CmsFlexController controller =
(CmsFlexController)request.getAttribute(CmsFlexController.ATTRIBUTE_NAME);<BR>CmsFlexCache
cache = controller.getCmsCache();<BR>cache.cmsEvent(new CmsEvent(cmsObject,
I_CmsEventListener.EVENT_FLEX_CACHE_CLEAR, Collections.singletonMap("action",
new Integer(CmsFlexCache.C_CLEAR_ALL))));</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Do I need to put something else ??</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Thanks!</FONT></DIV>
<DIV><FONT face=Arial size=2>Emiliano</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<BLOCKQUOTE dir=ltr
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=eviera@sdd.com.ar href="mailto:eviera@sdd.com.ar">Emiliano
Viera</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A title=opencms-dev@opencms.org
href="mailto:opencms-dev@opencms.org">opencms-dev</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Thursday, January 22, 2004 10:17
AM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> [opencms-dev] Clear Flex
Cache</DIV>
<DIV><BR></DIV>
<DIV><FONT face=Arial size=2>I need to clear the flex cache in a .jsp page.
Does anybody have an snippet to do it ?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I dont want to deactivate the cache, because it
improves the performace. But, in some places of my site, i need to clear
it.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Thanks</FONT></DIV>
<DIV><FONT face=Arial
size=2>Emiliano</FONT></DIV></BLOCKQUOTE></BLOCKQUOTE></BODY></HTML>