WebSphere Portal Server - caching problems

This is Interesting: Free IT Magazines  
Home > Archive > WebSphere Portal Server > September 2005 > caching problems





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author caching problems

2005-09-20, 6:06 pm

Hi

I am having a tough time with a really simple problem of portlet caching.
I configured my portlet.xml file as

<cache>
<expires>3000</expires>
<shared>yes</shared>
</cache>

And I have configured the page cache options to shared and 3000 also(I have tried other numbers too.... just in case).
I am testing that if the cache is working or not by using a Sys out statement in my portlets viewJSP file.

But every time I try to refresh my page it prints that in log.

Am I doing everything right. And if so do I have to configure anything else.

Pls Help.
Thanx in Advance
Sachin



2005-09-20, 6:06 pm

try this:
enable your app server's servlet caching;
restart server.

2005-09-20, 6:06 pm


Thanx a lot FrumbleFoot......
Its working!!!!!.... but I have another problem now.
What I need to do is the page should change in the browser if I change the JSP. But I am not able to achieve this...I have a portlet in which you can change the view through configure. When I configure the portlet using configure icon to change the view,
It changes. My guess is it invalidates the cache somehow. But how can I achieve the same when I change a jsp file manually. Is there any setting in the Server which checks when the page was modified last???
And if somebody has some good resources for Portal/Portlet Caching pls post a link... Since the infocenter has very few details about the same.

Thanx in Advance
Sachin

2005-09-20, 6:06 pm

Edit file \appserver\config\cells\"instanceportal"\applications\wps.ear\deployments\wps\wps.war\WEB-INF\ibm-web-ext.xmi

change reloadingEnabled="false" to reloadingEnabled="true"
startServer server1
startServer WebSphere_Portal

regards.

Julio Kochem

2005-09-20, 6:06 pm

I already have that enabled but still I am getting the cached page???????
andreiss

2005-09-20, 6:06 pm

http://www-1.ibm.com/support/docvie...tf-8&lang=en+en


Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com