On Mon, Jan 14, 2013 at 09:41:45AM -0600, will trillich wrote: > One problem I see with the exact code posted here is a typo referring to > singular-vs-plural on the hash key: > > On Sun, Jan 13, 2013 at 10:35 PM, Jesse Sheidlower <jes...@panix.com> wrote: > > > > > unless ( $c->stash->{subjects} = $cache->get( 'subjects' ) ) { > > $c->stash->{subjects} = > > $c->model('WordsDB::Subject')->search(); > > $cache->set( 'subject', $c->stash->{subjects} ); > > } > > > > > Note 'subject' vs 'subjects': > > $cache->set( 'subject', $c->stash->{subjects} );
That was my typo re-keying the actual code for the mailing list, the original (which presents it differently, in a way not relevant for this purpose) is correct. Sorry for the misleading example. Jesse _______________________________________________ List: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/dbix-class IRC: irc.perl.org#dbix-class SVN: http://dev.catalyst.perl.org/repos/bast/DBIx-Class/ Searchable Archive: http://www.grokbase.com/group/dbix-class@lists.scsys.co.uk