Sunday, April 29, 2012

Re: Paginating cached data



On Saturday, 28 April 2012 14:49:30 UTC+2, Jeremy Burns wrote:
I have a function that does a whole bunch of complex finds and calculations to produce an array, which is then cached. Some of the array keys contain meta data about how the calculation was done and some high level contents of the results. One of the array keys contains the actual results that I want to display and paginate. How can I read that array key from cache and paginate it in a view?

Couldn't you use https://github.com/cakephp/datasources/blob/2.0/Model/Datasource/ArraySource.php on your cached result?

Cheers,

AD 

--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.
 
 
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

No comments: