Quick Nav:  Online Store   |   Login | Register

Page Caching for Highly Active Sites

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
Dharmesh
<20 Posts
Posts:2


08/06/2006 9:47 AM  

Greetings,

I'v become really interested in considering some type of page caching mechanism for a community website that I run on DNN (http://onstartups.com).

My question is this:  How effective is page caching on active pages where the content is changing frequently (like an active discussion forum page)?  Though I can see the benefits to caching for static pages that don't change that often, many pages in a typical DNN portal may be more "dynamic".

All guidance and help is appreciated.

-Dharmesh

Mariette Knap
<250Posts
Posts:102


08/06/2006 10:17 AM  
At the moment the PageBlaster module does not cache anything for authenticated users. I found that your Forum is protected and not accessable for anonymous users and therefor caching would not help. All your other pages would benefit a lot. Even without caching your forum your site will benefit from the PageBlaster module because normally when a anonymous user visits your site it will cause database hits. With less database hits there is more 'room' for database hits caused by your forum.


DotNetNuke Platinum Benefactor
Mariette Knap - www.smallbizserver.net
John Mitchell
Posts:2779


08/06/2006 10:23 AM  

Hi Dharmesh,

Excellent question.  In fact your question is one of the main reasons I wanted to build a dynamic page caching module.

Dynamic means active, active means higher gains
One of the best things about page caching is that the more traffic you get, the more you will benefit from it which allows you to set the refresh rate even lower (refresh more often) and still get huge gains. In other words, if you have a forum that gets very little traffic, then the content isn't really changing much anyway. 

For instance, in your Forums example. With most forums there are usually lots of people reading the different posts, and only a few people actually changing those pages by creating new posts.  And on a longer thread that has enough posts to get to a second "page", the first page rarely changes at all.  So even in a forums environment it is only the newest content that is actually dynamic and the rest is more or less static.

Most visitors are anonymous readers
Also, with typical websites, there are usually a lot more anonymous browsers of your content then their are people who are authenticated.  Using the PageBlaster, pages are not delivered from cache unless the user is not authenticated.  This works out very well by taking the biggest part of load off the server which in turn frees up those resources for people that are logged in.  When a logged in user changes content (like making a post), the page cache is cleared automatically for that page.  This may sound bad, because we are having to reuild the cache again every time someone posts, but in reality we are no worse off then not having caching at all when the cache gets cleared, and we immediately start gaining the advantage back from caching until the next post.  That being said, I'm going to be doing further work to make sure the pages that are no longer dynamic do not expire as fast as the ones that are constantly changing.

So in summary, even though your site may be very dynamic, that also means it is very active, which in turn means that you stand to gain more by caching then a site that gets little traffic. On the other hand, if your site gets very little traffic, then you can set your refresh rate much higher and still get the same relative benefits.

Smaller is Better
One other thing about the PageBlaster is that it also does compression, and it does this before putting your pages in memory or on disk so you get another advantage there by not only delivering a smaller payload, but also storing a smaller payload.

 

Mariette Knap
<250Posts
Posts:102


08/06/2006 10:31 AM  
Sorry John, I thought you were out because of the weekend...I thought I help out a bit


DotNetNuke Platinum Benefactor
Mariette Knap - www.smallbizserver.net
Dharmesh
<20 Posts
Posts:2


08/06/2006 10:35 AM  
Thanks for the fantastically fast responses.

I'll install the module later today and report back on my findings.

Do either of you use some sort of web performance monitoring service, or other simple means of testing the performance of a page?

John Mitchell
Posts:2779


08/06/2006 10:39 AM  

No problem Mariette. I really appreciate your informative posts.

Thank you for helping out!

John Mitchell
Posts:2779


08/06/2006 11:12 AM  

After installing PageBlaster, you'll notice a difference or your money back.

I use a couple sites for overall speed testing:

http://www.iwebtool.com/speed_test <-- this one does not request that the pages be compressed but is a good one for measuring speed.  I noticed that you need to check twice or more to get an accurate measurement of your actual website because it apparently get's faster after the routes in the network have been established.

http://www.vertain.com/?sst <-- this one gives you the actual time it takes to begin loading in your browser, referred to as "Time To First Byte", which is a nice way to see how fast the page is delivered.  Then it needs to be loaded in your browser which may take a while depending on how optimized the page is.  I don't think this one requests a compressed page either though.

Other helpful links:

http://web-sniffer.net/ <-- great for checking headers and compression.

http://www.port80software.com/products/httpzip/compresscheck <-- gives a nice graphical view of compression

 

 

Mariette Knap
<250Posts
Posts:102


08/06/2006 12:07 PM  
John, do you have any new versions to try?


DotNetNuke Platinum Benefactor
Mariette Knap - www.smallbizserver.net
Mariette Knap
<250Posts
Posts:102


08/06/2006 12:13 PM  
v:1.2,c


DotNetNuke Platinum Benefactor
Mariette Knap - www.smallbizserver.net
John Mitchell
Posts:2779


08/06/2006 12:35 PM  
Posted By Mariette on 08/06/2006 12:13 PM
v:1.2,c

Very observant!  Yes, I'm testing it on my site now and it seems to be working well. I'll make it available in a few hours after some additional testing and packaging.
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 > Page Caching for Highly Active Sites



ActiveForums 3.7
Powered by: Snapsis Software