php如何从web搜索中缓存分页


php How to cache from web search for a pagination?

不久前,我访问了http://www.123people.com,我对它的一些技术感兴趣。

在网络照片搜索之后。如何缓存数据以便分页?在原始代码中,我没有看到他加载页面中的所有数据,然后用div show进行jquery分页,隐藏。

而且我不认为,存储到数据库中是一个好方法。

除此之外,如何从网络搜索中缓存分页?(明智的做法是,支付更少的服务器资源。)

例如,它们可以将结果缓存为搜索"页面"[例如,缓存为硬盘上的文件],只返回有关当前页面和集合中页面数量的信息。如果数据可以动态更改,他们可以将所有结果存储在一个地方,然后"查询"该数据的特定子集。

你真的有很多选择,可能其中很多都是好的/足够的。

资源:

http://planetcakephp.org/aggregator/items/4559-pagination-caching-with-cakephp

http://www.web-design-talk.co.uk/210/php-paging-with-caching/

http://www.jotlab.com/2010/02/09/pagination-caching-with-cakephp/

http://stefanomanfredini.info/2010/09/single-query-cache-and-pagination-cache-until-a-future-post-and-ad-hoc-joins-an-over-override-of-appmodelfind/

谷歌:php分页缓存

http://www.kattz.com/programming/20652-php-pagination-how-do-chnage-my-pagination-page-produce-static-pages-so-there-less-load-mysql-table.html

显然,有很多关于CakePHP的资源——我不使用它,但它们会向您展示这个想法。