jhx has asked for the wisdom of the Perl Monks concerning the following question:
I was under the impression that the fixup phase only happened once per request, so I thought it was the perfect place to place a tracking script (just does some lookups and sets a cookie). But now it seems that this fixup handler is being called multiple times, sometimes as many as 20 times when you request a directory.
Is this caused by something else that is running? I stripped down my handler to simply log an error at the very start and then decline or OK to stop. Every time I get multiple entries from a single request, with no redirections taking place.
This is such a simple case that I did not provide code, but will if anyone suggests that could be the issue. If the fixup phase is designed to repeat itself, what can you recommend for making my script run only once per request? Thanks so much, I am really taking a liking to Perl!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: PerlFixupHandler help
by jhx (Initiate) on May 19, 2011 at 21:02 UTC | |
by jhx (Initiate) on May 20, 2011 at 18:41 UTC | |
|
Re: PerlFixupHandler help
by Anonymous Monk on May 19, 2011 at 16:06 UTC | |
by jhx (Initiate) on May 19, 2011 at 18:32 UTC |