|
|
|
| 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
| |
|
| try this:
enable your app server's servlet caching;
restart server.
| |
|
|
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
| |
|
| 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
| |
|
| I already have that enabled but still I am getting the cached page???????
| |
|
|
|
|