|
You are here: Home / Documentation / Caching for Better Performance |
Caching for Better PerformanceQuery-level cachingLet's look at a simple PHP script that retrieves the newest 10 news stories from a web site. Not a database-intensive query, but it will suffice as an example for our purposes.<?php /* retrieve the top 10 headlines */ $res = array (); /* display the headlines as a bulleted list */ ?>You're going to love how easy adding query caching to this script is. Check this out: <?phpThat's all there is to it. Simply pass a second boolean parameter to db_query() and if query caching is configured in your config.ini.php, it will happen automatically for your query. How much easier could it get? ConclusionSitellite offers simple but highly effective solutions to improving the performance of web applications at every level. The only thing we can't solve for you is choosing the right solution for your project's needs. :)Page 1:
Caching in General |
|
Copyright © 2008, SIMIAN systems Inc. All rights reserved. Privacy policy Some of the icons on this site were created by the Gnome Project. |