fr600 wrote:Hello,
I've created a basic news board script and I want to enable caching to reduce number of queries. I know how to cache a single page after every xx minutes but I don't know how to cache multiple pages (with pagination). Any idea how to do this?
Thanks
it depends on what you exactly need
do you want to cache the whole page, included the dynamically generated content?
then write a script that creates .html pages and run it regularly, say every 10 minutes.
if you need to cache the PHP scripts, try some caches, like APC, eaccelerator etc.
if the database is a bottleneck, try to run some maintenance, like optimize /vacuuming, set up some indexes or examine the query-plane if all queries uses correct indexes