| Caching and Timeouts |
|
| Written by Brent Martin | |
| Saturday, 27 September 2008 | |
|
With a session called "Caching and Timeouts" late in the day in the middle of the week, my expectations of paying attention were pretty low. But Graham Smith from Oxfam gave the most practical and complete presentation of the topic that I’ve heard. Oxfam is one of those rare companies that runs PeopleSoft all over the world. Not just in nice urban centers with reliable fiber-optic networks, but in places like Afghanistan where the only power comes from a diesel generator and the network is a small satellite dish on the roof. In such situations, it’s absolutely critical to get caching and timeouts optimized, or the user experience will be non-existent. I had a client in Switzerland once with the challenge to operate in similar environments, and although it’s been over 10 years I’m still interested in how companies do computing in hostile environments. It’s not that the subject matter was difficult, or that I didn’t know most of it already, but the completeness of the presentation and the additional insights to the process made the session worthwhile. Here are the points I came away with: Caching Cache is a tradeoff between speed and currency. The goal is to cache frequently accessed but infrequently changed objects. The question you have to ask yourself is how important it is to stay up to date. Cache resides on the Application Server, the web server and the browser. Application Server cache works like this: When a request for a PeopleTools object is made, the application server checks its in-memory cache for the object. If it’s not there, it checks the disk cache and if it finds it, it pulls it into memory and uses it there. If it’s not on the disk, it pulls the object from the database. The web server caches the following objects: The browser manages its local cache like this: There are some tools that are very useful for viewing cache properties and which items are retrieved from where. Microsoft’s Fiddler tool (available from www.fiddlertool.com) is very good. Firebug is a good tool for firefox, and the Internet Explorer Developer Toolbar is good as well (as long asyou download it from Microsoft.com). You may be surprised at how many requests are made to the web server with each mouse click once you’re viewing the activity with one of these tools. PeopleSoft performance monitor is also an invaluable tool for troubleshooting such things. Did you know: Have you ever noticed how when you change security it might show up at one level of the navigation menu, and not at another? This is because all menu levels are not cached equally. From ___’s analysis, the root menu is not cached on the web server, and there’s no way to cache it. The submenus on the other hand do get cached – for 24 hours by default. So when security is changed the best thing to do is to clear the web server cache, and ask the user to clear their browser cache as well. TimeoutsHere are the timeouts in the order that they appear: |
|
| Last Updated ( Saturday, 27 September 2008 ) |
| Next > |
|---|
