PeopleSoft Corner

Polls

Is your company considering a PS Implementation or Upgrade in 2009?
 
Will your company slash its IT budget in 2009 because of market conditions?
 
Purging Cache Without Shutting Down Print
Written by Brent Martin   
Saturday, 06 January 2007

You can purge web server and application server cache even when the system is up and running. This article will discuss how.

 

Disclaimers

Before we begin, let me quote the PeopleTools 8.46 release notes:

You can purge the cache regardless of whether the application server domain is running; there's no need to shut it down and reboot. However, the procedure is less disruptive and runs more quickly if the domain is shut down or its activity is low.

And to quote PeopleBooks

Important! You should purge the cache only after due consideration, and in conslutation with PeopleSoft.

OK, the disclaimers are out of the way. Now let's get started.

 

Purging App Server Cache

Starting in PeopleTools 8.46, there's a new option in PSADMIN called Purge Cache under the Administer a Domain submenu. This option will purge application server cache even if the application server domain is up and running.

Select Purge Cache (option 8 in Tools 8.46.05) and if the cache is not empty the following prompt appears: "Enter log comments about this purge, if any (maximum 256 characters):"

Enter any comments you want recorded and hit Enter. Your comments will be saved in the LOGS directory under PurgeCache_mmddyy_hhmm_ss.log.

Then it will ask if you want to archive the contents of the current cache. I have no idea why anyone would ever want to archive cache, so I select No.

When prompted to continue, enter y to continue the purge operation. If your domain is running, you may see several INFO messages. This is normal, so don't sweat it. It also will take longer than just shutting down the domain and deleting the files so don't worry about the length of time it takes either.

 

Purging Web Server Cache

We'll be using the "Purge" servlet directive to make it happen. Rich Manalang has the best and only post I'm aware of about PeopleSoft Servlet Directives at http://manalang.com/archives/2005/09/12/peoplesoft-servlet-directives and explains how to do things like purge web server cache, reload your web profile, view your web profile, etc.

To set up your system for servlet directives you need to specify a password in your web profile. So open your web profile (PeopleTools > Web Profile > Web Profile Configuration), navigate to the Custom Properties tab, and look for a property called auditPWD. It should be set to a string, and the property value should be whatever password you want to set. The default is "dayoff". If you make any changes, you'll have to bounce your web server for it to take effect.

Once the auditPWD property is in place, you can simply call the psp servlet with the purge command, and your web server cache will be purged. The syntax of the URL is: http://[server]/psp/[site]/?cmd=purge&pwd=[password]

For example: http://psoft.erpassociates.com:6500/psp/HDEV/?cmd=purge&pwd=dayoff.

Anyway, update the URL with your specific info, paste it into your browser, and the web server cache will be cleared without a web server bounce.

As always, make sure you test these techniques in a non-production database, and use at your own risk! I hope you find them helpful.

Comments (0)add feed
Write comment
quote
bold
italicize
underline
strike
url
image
quote
quote
Smiley
Smiley
Smiley
Smiley
Smiley
Smiley
Smiley
Smiley
Smiley
Smiley
Smiley
Smiley


Write the displayed characters


busy
 
< Prev   Next >