[Catalyst] Plugin::Session lazy start
Dag-Erling Smørgrav
des at des.no
Wed May 23 12:12:31 GMT 2012
Will Crawford <billcrawford1970 at gmail.com> writes:
> Dag-Erling Smørgrav <des at des.no> writes:
> > Is there a way to have C::Plugin::Session (or C::P::S::Store::FastMmap)
> > initialize the cache on first use instead of at startup?
> { ..., unlink_on_exit => 0 } in your config.
"delete the cache when you're done" is very different from "don't create
the cache until you actually need it".
> > As an alternate solution, is there a way to have it use a different file
> > name every time it starts?
> Personally I go with having a relative path in the myapp_local.conf
> that puts them all in a tmp/ subdirectory of where I'm running the
> server, then an absolute path in myapp.conf for the real thing.
The script runs with the exact same configuration as the application,
including myapp_local.conf. That's the whole point of using a Catalyst
script instead of a standalone program.
DES
--
Dag-Erling Smørgrav - des at des.no
More information about the Catalyst
mailing list