David Wheeler
Thu, 14 Aug 2003 18:27:09 -0700
Caching can be useful in some applications, but it can also cause problems and should be used with care. The exact behaviour of this method is liable to change, so if you intend to use it in any production applications you should discuss your needs on the dbi-users mailing list.
So, do I need to ask anyone other than you, Perrin? Tim, are you listening? Is this still somewhat experimental?
sub handler {
my ($r) = @_;
# Handle the request.
my $status;
eval {
# Start the database transactions.
begin(1);
# Handle the request.
$status = $ah->handle_request($r);
# Commit the database transactions.
commit(1);
}; # Do error processing, if necessary.
return $@ ? handle_err($r, $@) : $status;
}-- David Wheeler AIM: dwTheory [EMAIL PROTECTED] ICQ: 15726394 http://www.kineticode.com/ Yahoo!: dew7e Jabber: [EMAIL PROTECTED] Kineticode. Setting knowledge in motion.[sm]