On Mon, 10 May 2004, John wrote:
> I have tried doing the following:
>
> print $template->output;
> $r->register_cleanup(\&some_stuff);
I don't know much about register_cleanup() but I have used
PerlCleanupHandler for this kind of thing with success. Looking at
the docs for register_cleanup() it's not clear to me that it runs the
code after the response is sent to the client. Just what is a "pool"
anyway?
> However, H:T seems to wait till "some_stuff" finishes before going to
> work.
I doubt it. Try this to see if you're right:
print $template->output;
warn("HTML::Template output complete.");
$r->register_cleanup(\&some_stuff);
If you get that warning in your logs before the sleep() starts then
HTML::Template is done and your problem lies elsewhere. I suggest you
post a question to the mod_perl mailing-list where the mod_perl gurus
can give you a better answer than mine.
-sam
-------------------------------------------------------
This SF.Net email is sponsored by Sleepycat Software
Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to
deliver higher performing products faster, at low TCO.
http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3
_______________________________________________
Html-template-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/html-template-users