in reply to Re: CGI::Application under FastCGI (Guru advice needed)
in thread CGI::Application under FastCGI (Guru advice needed)

Thanks for your idea! You comment made me decide for this design!
Actually I saw this flag-todo-done approach in another C::A::Plugin module yesterday and thought it is an ugly hack. I still hoped there was a way to do it elegantly...

BTW: Since I switched to C::A (to finally get cgi right, as they said) it was just a trial of hacks and tricks to get it working like my old homebrewn framework. Mmh. I shouldn't complain...
  • Comment on Re^2: CGI::Application under FastCGI (Guru advice needed)

Replies are listed 'Best First'.
Re^3: CGI::Application under FastCGI (Guru advice needed)
by samtregar (Abbot) on Nov 30, 2007 at 19:36 UTC
    Too ugly? Perhaps - beauty is in the eye of the beholder. A "cleaner" way to handle one-time cache setup is by using the singleton object pattern. It's more code, but you won't have to see anything "ugly" in your C::A sub-class.

    -sam