<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1106" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#d8d0c8>
<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></BODY></HTML>