PDA

View Full Version : Page Output Caching is not working


mcomco
09-16-2007, 07:36 AM
Hi,
Page Output Caching is not working for my site at discountasp.net.

I am using this directive:

<%@ OutputCache Duration="86400" VaryByParam="*" %>

In the the page, the url and a timestamp is written to the database.
That is how I can be certain that the caching is not working.
The caching does work on my development environment at home.
Any suggestions? This is quite significant for my site.

Thanks,
Mark

Post Edited By Moderator (mjp) : 9/26/2007 1:44:58 AM GMT

vvsharma
09-17-2007, 08:18 AM
'@OutputCache' uses server side memory, which gradually reaches the allotted memory limit per customer [being a shared hosting environment] which results in application recycle and hence loss of cached data. It's recommended to use client side caching instead. Try setting the location attribute to 'client' [default is 'Any' See:MSDN Reference (http://msdn2.microsoft.com/en-us/library/hdxfb6cy.aspx) ]

Vikram

DiscountASP.NET
www.DiscountASP.NET (http://www.discountasp.net/)

mcomco
09-19-2007, 09:44 AM
Thanks for your prompt reply. I will reconsider how I use the cache.


A few questions:


How much cache memory is an account allotted. Is it possible to upgrade to get more memory? Is it possible to monitor the cache memory usage?


Thanks,


Mark

bruce
09-28-2007, 11:44 AM
Each site can use up to 100MB of memory. No. You cannot buy more.


Bruce

DiscountASP.NET
www.DiscountASP.NET (http://www.DiscountASP.NET)