From: Eric Anderson Date: 2004-12-13T01:27:35+09:00 Subject: Re: fsync on stdout for mod_rewrite Dominik Werder wrote: > clear last_request after the puts so that not accidentially an old > value can be given to apache.. maybe overcautious, anyway.. :) last_request stores the last request for the next request. It is a basic caching mechanism. For every web request this script is called a couple of times because of the way mod_rewrite works. Therefore I want to cache the most recent answer so I don't end up with a bunch of SQL queries for each request. Also if a site is popular it will cut down on the number of SQL requests although a more extensive caching would be better for that. If last_request == request then we give the same answer as the last request. Eric