Up Prev Next
From: David C Worenklein <dcw at gcm dot com>
Subject: Re: Temporary Response
Date: Jan 14 1999 8:40PM
If there are a limited number of queries, do this:
1. Get the query.
2. Has that query already been asked?
2a. Yes: Show the answer. Exit.
3. Is someone else running that query? (ie Is there some kind of semaphore?)
3a. No: Create the semaphore and run the query (in another process).
4. Say "Please hold on", with the following header:
print $cgi->header(-refresh => "1; URL=" . $cgi->self_url);
If there are not a limited number of queries, assign it some id
number, and in the refresh, have it give you back the id as a