Forums Register Login

How to disable portlet caching in JSR168 portlets?

+Pie Number of slices to send: Send
I have 2 pages in my portal that points to the same portlet (but with different portlet preferences). I have an issue where the page gets cached and when you click between the 2 pages, it doesnt reload properly with the updated portlet preferences. Is there a way I can disable caching? This is in Websphere Portal 6.1.

Thanks!
+Pie Number of slices to send: Send
 

John Zwick wrote:I have 2 pages in my portal that points to the same portlet (but with different portlet preferences). I have an issue where the page gets cached and when you click between the 2 pages, it doesnt reload properly with the updated portlet preferences. Is there a way I can disable caching? This is in Websphere Portal 6.1.

Thanks!



Use the following line in doView method:

and also can use<expiration-cache>0</expiration-cache> in yours portlet deployment descriptor.
No matter. Try again. Fail again. Fail better. This time, do it with this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 3131 times.
Similar Threads
Weblogic portal Backing file, Preferences and portlet hide/undhide and different skins
Portlets And Portlet Preferences
Webpshere Portlets with JSF
Jboss portal preferences
Portlet Session Scope - Application or Portlet
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 20:22:53.