• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to disable portlet caching in JSR168 portlets?

 
John Zwick
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!
 
Bhagat Singh Rawat
Ranch Hand
Posts: 93
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic