Quick Nav:  Online Store   |   Login | Register

Warning - over-enthusiastic use of caching can leave your site in a time warp!

Rate this topic:

Please Register to post a reply. Another benefit of registration is the ability to subscribe to and recieve notifications of new posts.
AuthorMessages
Laurence Neville
<100 Posts
Posts:60


05/03/2007 5:41 AM  

This is just something I wanted to share in case others fell into the same trap I did. Its not a complaint about PageBlaster, and there is no request for John to fix/change anything!

I thought my e-commerce site was the perfect candidate to take advantage of PageBlaster - 99% of the pages are public and everyone sees exactly the same content on each page. So I configured PageBlaster to cache all the public pages with a cache interval of 1 day and performance went up enormously. However there was one thing I didn't think of ...... the date display at the top of every page! A fairly standard feature for a website and not something I ever gave much thought to, but since setting up caching the date shown would often be yesterday's date not today's. Also some pages would show yesterday's date and some would show today's!

The source of this of course is that, with a cache interval of 1 day, yesterday's cached copy of any page might still be what is shown today. The resolution is to shorten the cache interval to a few hours. That way the worst that can happen is that only people shopping in the small hours of the morning could see the wrong date.

John Mitchell
Posts:3033


05/03/2007 7:59 AM  
Thanks for sharing that Larry. Yes, people often run into this problem with the online users module also. It is a trade off, but I choose fast over "nice" in those cases.

Setting the interval smaller is a great way to balance it. You probably know this, but the more traffic you have the lower you can set the interval and still achieve amazing gains in performance.
SplatMan_DK
<100 Posts
Posts:81


05/14/2007 7:24 AM  
Hint-hint ... timed and forced re-generation of cached files ... hint-hint.

It would be great if a timed task could simply be set to re-generate all pages at a given time ... say at 00:01. Would solve most of these problems.



- Jesper

brgds

- Jesper
Please Register to post a reply. Another benefit of registration is the ability to subscribe to and recieve notifications of new posts.
Forums >Snapsis Product Support >PageBlaster > Warning - over-enthusiastic use of caching can leave your site in a time warp!



ActiveForums 3.7
Powered by: Snapsis Software