in reply to Catalyst, Accessing Cache plugins from Models

it explains the controller usage, but doesnt mention if models can also use the cache

Well, the controller gets a cache ... the model doesn't get a cache ... give the model a reference to controller? Or use CHI?

The DBIc model makes use of cache plugins, but it's example has proved to be unhelpful

Where can I see that example?

  • Comment on Re: Catalyst, Accessing Cache plugins from Models

Replies are listed 'Best First'.
Re^2: Catalyst, Accessing Cache plugins from Models
by djzort (Sexton) on Mar 23, 2014 at 06:24 UTC
    see also https://metacpan.org/pod/Catalyst::TraitFor::Model::DBIC::Schema::Caching

        Yeah I had seen that but was hoping there was a "proper" way. Pity.

        IMO caching should be available in M, V and C - but that could be a lively debate for another time.