Advogato blog for prenagha Advogato blog for prenagha en-us
mod_virgule Sun, 9 Mar 2014 10:47:26 GMT Fri, 15 Jun 2001
21:40:34 GMT 15 Jun 2001 Diary/blog now on my <a href="" >home
page</a> courtesy of <a href="" > Personal Weblog</a>. <br>Read
it there if you like. <br><a href=" blog/" >Subscribe</a> to the
mailing list to get new entries via email if you prefer. <br>Or
ignore it entirely. Thu, 1 Feb 2001 16:11:42 GMT 1 Feb 2001
Worked out a server-side caching mechanism for PHP based sites.
This is extremely helpful to performance. Somewhat like the
concept of a reverse-cache sitting in front of a webserver, like
squid, but this can be used on those hosts that don't have that
software installed. Here is a snapshot of the PHP code, usage
should be self-explanatory. I just started testing it, but so
far so good. <pre> function pageCacheStart($ttl=600,
$debug=FALSE, $cacheDir='/tmp/pagecache', $sidName='psid') {
global $HTTP_SERVER_VARS, $HTTP_GET_VARS, $HTTP_COOKIE_VARS; <p>
//to force the cache OFF, uncommen