Friday, December 23, 2005

Refresh webserver Cache without restarting it

You can set auditPWD parameter in configuration.properties (pre 8.44) or web profile (> 8.44) to refresh the webserver cache dynamically without restarting it. This is really helpfull when you do not want to disturb your developer population.

auditPWD=dayoff

Set this to something unique for e.g. dayoff and fireoff this url to refresh the cache
http://myserver:port/psp/ps/?cmd=purge&pwd=dayoff

To view configuration.properties

http://myserver:port/psp/ps/?cmd=viewconfig&pwd=dayoff
http://myserver:port/psp/ps/?cmd=viewsprop

To Reset Timeout

http://xxx.xxx.com:5500/psp/ps/?cmd=resettimeout&pwd=xxxx

6 comments:

praful said...

Hi Ketan Kothari,

This is been very useful to us.

But when we use this it (http://myserver:port/psp/ps/?cmd=viewconfig&pwd=dayoff) we are getting a webpage with :

?xml version="1.0" encoding="UTF-8" ?
ROOT /

Can we do any setting to have our message instead of the above. Something like : "Cache Cleared"

Thanks in advance
Praful

Ketan Kothari said...

This message indicates that the userid and password you are using is invalid or the system is not able to login with supplied credential. Review your configuration.properties or web profile and make sure that there is no typo including the case. Make sure that you have restarted the web server after making the change.

Ron said...

Ketan,

On Weblogic 8.1, using ?cmd=purge&pwd=dayoff returns:

" ?xml version="1.0" encoding="UTF-8" ?
ROOT / "

but, viewconfig and resettimeout work just fine. Any suggestions

Thanks,
Ron

Matthew Trolan said...

Ketan - Please explain what the timeout option is for? What exact timeout does it reset?
Thx,-Matt

venkata suresh said...

on peopletools 8.49 and Weblogic 9.2, using ?cmd=purge&pwd=dayoff returns:

" ?xml version="1.0" encoding="UTF-8" ?
ROOT / "

but, viewconfig and resettimeout work just fine. Any suggestions
please send brief explanations

Ketan Kothari said...

It may be a bug in PT 8.49.XX release you are using. Log a case with PeopleSoft support. See Resolution 200744966 - E-AS: How to delete cache on App Server, Web Server, and Browser, where PS mentions this feature. Also search for auditPWD in your peoplebooks for documentation.