How would you get it to persist between requests?
`var $cacheQueries = true;` will cache the results of model queries in
memory, which might be what you're looking for. If you're looking for
something that can persist the last accessed data across requests, I'd
implement what you're describing by implementing a Model::afterFind()
in your app_model which caches the results.
-jperras.
On Nov 7, 4:06 am, jayarjo <jaya...@gmail.com> wrote:
> I wonder whether data retrieved by last query (as a result of Model-
> >find() for example) is accessible in some internal Model variable?
> I'm trying to build custom datasource and one of the ideas was to
> store last retrieved data in there somewhere, but I'm not sure whether
> this is established practice.