cache a pager_query

vordude - July 4, 2009 - 03:19

I've created a module to work around a couple of issues i've had with views, and I'd like to be able to cache the results of a pager query.

Everything seems to work fine, until I try to load the data once.

The only thing I find on the subject is this:

Note that you should also cache the resulting contents of the pager_page_array, pager_total, and pager_total_items global variables as well. Otherwise when you attempt to show paging links via theme_pager you'll get nothing.

I'm looking for a good example. Is this essentially going to end up rewriting (copyingandpasting) the pager_query function, and dealing with that cached data there?

 
 

Drupal is a registered trademark of Dries Buytaert.