[SOLVED]Paginating with partial page caching

Not for 'how-to' coding questions but PHP theory instead, this forum is here for those of us who wish to learn about design aspects of programming with PHP.

Moderator: General Moderators

Post Reply
divedj
Forum Commoner
Posts: 47
Joined: Wed Dec 29, 2010 4:32 am
Location: Malta

[SOLVED]Paginating with partial page caching

Post by divedj »

Pagination stuck in page cache.

Hello,

I am building on a photo website. To keep pages in a loadable size I need to limit the displayed images per page. In generall no problem but since we had already problems with serverload etc. we also need to cache partial site content to reduce db access and php requests on the server. Both tasks by itself are not a real problem but soon as we start enabling the sitecache the paginating doesn't work anymore.
I am wondering if anybody got an idea to use a sitecache without loosing pagination.

Thanks for having a look
Last edited by divedj on Sun Mar 20, 2011 2:19 pm, edited 1 time in total.
dgreenhouse
Forum Newbie
Posts: 20
Joined: Tue Mar 10, 2009 5:13 am

Re: Paginating with partial page caching

Post by dgreenhouse »

Here's an interesting thread from 2008 on Stackoverflow...

http://stackoverflow.com/questions/1094 ... w-to-solve
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Re: Paginating with partial page caching

Post by Christopher »

You might want to look at Zend_Cache.
(#10850)
divedj
Forum Commoner
Posts: 47
Joined: Wed Dec 29, 2010 4:32 am
Location: Malta

Re: Paginating with partial page caching

Post by divedj »

Thank guys,
just solved the problem by rewriting my paginated file to filename-pageNo which works fine as cached file for me.
Post Reply