Do you happen to use the "Commerce Server"? With that thing I don't have
any experience (sorry for that)...
I couldn't find anything in the MSDN directly and a search to "CacheManager"
resulted in articles from the Commerce Server 2000/2002...
I did use ASP.NET Caching quite extensively and also added some code to
reduce the bandwidth even further (returning 304 quite frequently).
I believe you are really doing it the hard way. My code to support ASP.NET
caching is quite small
(on an object that derives from System.Web.UI.Page, C#)
Object obj = Cache["MyNeededObject"];
if (obj = null)
{
obj = ...
Cache.Add("MyNeededObject", obj, DateTime.Now().AddMinutes(5), null);
}
......
Eventually I moved the SQL stuff to a different class, where the constructor
of that class required you to pass the cache object with it.
You can also set the caching of a page (really recommended, as proxies on
the way do that too).
in Response.Caching object I believe.
Check out
http://hoogendroog.ath.cx/ - first time costs time, second load should be
very fast
http://hoogendroog.ath.cx/default.aspx/peekcache - shows the current ASP.NET
cache contents
(If the second one doesn't show any items, at least visit the home page)
For the first page, when looking at the HTTP protocol you can sometimes see
the 'Expires' header counting down, ASP.NET is caching in this case.
If not, my code is returning the 304 header (don't forget to include the
If-Modified-Since request header set to the received Last-Modified response
header).
- Joris
<snip>