I've been trying out the new $Response->Include caching feature in the
development version of Apache::ASP, but I can't get even a simple example
to work.

My script to be cached is called series2.asp. I made another script
(easycache.asp) that simply calls series2.asp using a cached
$Response->Include:

<%
$Response->Include({
  File => 'series2.asp',
  Cache => 1,
  Expires => 3600,
  Key => $Request->QueryString,
});
%>

When I run "ab -n 500 -c 100" (Apache Benchmark, 500 requests total, 100
at a time), easycache.asp gets 18 requests per second, while series2.asp
gets 36 requests per second (i.e. the cached page is slower)!

I suspect that it is not being cached, because when I look in
$StateDir/cache, there is Response.dir (0 bytes), Response.lock (0 bytes)
and Response.pag (1024 bytes); that's not large enough to be holding
cached data from my page (about 5k bytes).

Any idea what I did wrong? I've set Cache to 1 and Expires to 3600, which
should mean that any page is cached for 3600 seconds.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to