Title: Message
 
Hi,
 
I've got a similar situation, and the work-around I've settled for is to clear the webapp output cache for each page load (for this session) in the template:
 
<%
// get which session we're on
HttpSession sess = request.getSession();
// scrap the portlet cache for it
ServicesRegistry.getInstance().getJahiaApplicationsDispatchingService().flushSessionOutputCache(sess);
// and don't cache the page
jParams.setCacheExpirationDelay(0);
%>
 
I've just made a clone of the layout template I require, and named it "+(no cache)". Works a charm!
 
Cheers,
 
-Greg
-----Original Message-----
From: MINGO Matthieu [mailto:[EMAIL PROTECTED]
Sent: Friday, 16 July 2004 9:59 p.m.
To: [EMAIL PROTECTED]
Subject: Question about template cache

Hi everybody,
 
I've developped a webapp which display a tip, and which must be renew at each time it is displayed....
 
so I've search how to flush the cache....
 
Finally I've decided to use these instructions :
 
Long temps= new Long("0");
request.setAttribute("org.jahia.portletapi.CacheExpirationDelay", temps);
But, are these instructions modifying the value of the expiration cache of the cache, or of the page where I've put my webapp.... ???
 
Or, if someone can tell me how to flush the cache for just a webapp and not a complete page......
 
 
Thanks in advance
 
Sincerily
Matt
 
------------------------
Matthieu MINGO
Bordeaux, FRANCE
 


Cr�ez gratuitement votre Yahoo! Mail avec 100 Mo de stockage !
Cr�ez votre Yahoo! Mail

Dialoguez en direct avec vos amis gr�ce � Yahoo! Messenger !

Reply via email to