Re: [Opensymphony-oscache] cachefilter
"jacky" <[email protected]>
| Newsgroups | gmane.comp.java.open-symphony.os-cache |
|---|---|
| Message-ID | <01b001c535b4$7a7599c0$6201a8c0@computer> |
hi ,
The matter is i don't know when to recreate the image, because the imagename is cached in cache tag and it can't be obtained.
I still can't get imagename just by request parameter.
the code :
String imageName = generateImage(request);
the generateImage(request) will consume some time , so i decide to cache it. but its content can't be modified.
Best Regards.
jacky Keenmicro
Email: [email protected]
MSN: [email protected]
----- Original Message -----
From: "Lars Torunski" <[email protected]>
To: <[email protected]>
Sent: Thursday, March 31, 2005 1:21 PM
Subject: [Opensymphony-oscache] cachefilter
> You must check in the cache tag, if you have to create the image (again). Use the refresh attribtue of the cache tag and implement a new method "hasToCreateImage(request)" in you bean.
>
> <cache:cache key = "test" scope = "application" time = "600" refresh="<%=hasToCreateImage(request)%>">
>
> http://wiki.opensymphony.com/display/CACHE/JSP+Tags
>
> ---------------------------------------------------------------------
> Posted via Jive Forums
> http://forums.opensymphony.com/thread.jspa?threadID=1151&messageID=3730#3730
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>