[Catalyst] query once per session?

Matt S Trout dbix-class at trout.me.uk
Tue May 8 14:13:49 GMT 2007


On Thu, Apr 26, 2007 at 02:35:09PM -0700, Michael Higgins wrote:
> I'm wondering how I can get a query (that becomes a drop-down list for a
> form field) set to execute only once and return the data from the client
> side, or at least from memory, until the session ends.

my $data = $c->session->{drop_down_data} ||= $self->get_grop_down_data($c);

-- 
      Matt S Trout       Need help with your Catalyst or DBIx::Class project?
   Technical Director    Want a managed development or deployment platform?
Shadowcat Systems Ltd.   Contact mst (at) shadowcatsystems.co.uk for a quote
                                          http://www.shadowcatsystems.co.uk/ 



More information about the Catalyst mailing list