Hi Mike,
You don't say if you are running under mod_perl (or similar) or as a CGI. If
you are running as a CGI, then your greatest speed improvement will come by
going to mod_perl, then you can use persistent DB connections.
Cheers
-----Original Message-----
From: Mike [mailto:mikeharrison1@xxxxxxxxxxxxxxx]
Sent: Wednesday, July 21, 2004 3:45 AM
To: cgiapp@xxxxxxxxxxxxxxxxx
Subject: [cgiapp] Caching HTML::Template output under CGI::App
Hello,
I have a database application which is very similar in structure to the one
given in the C::A example:
run mode 1: search form
run mode 2: access (MySQL) database and display results
run mode 3: detailed information on one item
Each run mode outputs to the browser using HTML::Template. The application
works fine, although I am concerned that when I return to run mode 2 from run
mode 3, it has to search through the database again before displaying the same
results.
Is there a way to get from rm 3 (via a link) back to the _template output_ of
rm 2 without having to go through the whole rm 2 script (which opens a DB
connection, performs a select statement etc. then plugs the relevant template
variables into the template file, and finally outputs the template to the
browser)? I know it can be done with javascript:history.back(), but what can
be done for non-js browsers or browsers with js turned off? Am I missing
something that should be staring me in the face?
Any help/suggestions would be greatly appreciated.
Mike.
---------------------------------------------------------------------
Web Archive: http://www.mail-archive.com/cgiapp@xxxxxxxxxxxxxxxxx/
http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: cgiapp-unsubscribe@xxxxxxxxxxxxxxxxx
For additional commands, e-mail: cgiapp-help@xxxxxxxxxxxxxxxxx
|