> what technique would you use if you had to have a handler work > exactly once, even though it may never be invoked as an initial > request?
if you're in prefork, off the top of my head I might set a perl global and then reset it using a cleanup handler. something like $My::Foo::seen++; $r->register_cleanup(sub { undef $My::Foo::seen }); so, again in prefork only, at the start of any request $My::Foo::seen should be false. all bets are off if you're using threads. --Geoff