Good afternoon,
On 17/08/10 at 8:27 AM +0300, Octavian Rasnita <[email protected]>
wrote:
>$c->stash(menu => $c->model('Menu'));
>
>But this would re-create the menu object on each request, and this takes time.
>
>The data structure of the menu is loaded only at startup by the do() in the
>configuration file, but
>then it is used on each request to re-create the menu object.
Are you looking for this:
http://search.cpan.org/perldoc?Catalyst::Model::Adaptor
Specifically:
"Note that NotMyApp::SomeClass is instantiated at application startup time."
Charlie
--
Ꮚ Charlie Garrison ♊ <[email protected]>
O< ascii ribbon campaign - stop html mail - www.asciiribbon.org
〠 http://www.ietf.org/rfc/rfc1855.txt
_______________________________________________
List: [email protected]
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/[email protected]/
Dev site: http://dev.catalyst.perl.org/