Hi ark0n3,

> I'm using native CakePHP cache methods and got excellent results in a
> very little time.
> I had just an annoying problem: I'm unable to cache pagination results
> because I get "Undefined variable: paginator" in the views.

I've got around this by caching the pagination in the view with the
same name as the cached data and '_paginator' appended. I think look
for the cached paginator in the view. As both the data and paginator
cache's have the same expiry times, it should always work (seems to so
far).

Here's a bit of code, had to strip out of a project, so it won't work
out-of-the-box, http://pastie.org/609566

hth

Jon

-- 

jon bennett
w: http://www.jben.net/
iChat (AIM): jbendotnet Skype: jon-bennett

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to