News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Joey Rivera's Blog:
Caching using PHP/Zend_Cache and MySQL
November 10, 2009 @ 14:47:40

New on his blog today Joey Rivera has posted this tutorial about using the Zend_Cache component of the Zend Framework to boost the performance of your site.

I like the definition used in Wikipedia: "a cache is a temporary storage area where often accessed data can be stored for quick access". The idea is to get 'often accessed data' from a database and store it in memory (RAM or as a file in your local file system). [...] Resources are limited on systems and to take advantage of your resources, you need to make sure time isn't spent on tasks that could be handled better elsewhere.

He talks about the Zend_Cache component and what sort of features it includes like the different caching methods (file, SQLite, mamcache, etc) and the different frontends your application can use (output caching, class caching, file caching, etc). He sets up a sample environment and shows how to cache a variable to a file, database results into a file, caching an entire page and how to clear out the cached items.

0 comments voice your opinion now!
caching zendframework zendcache tutorial mysql


blog comments powered by Disqus

Similar Posts

DevShed: Generating Web Pages in Multiple Languages with a PHP IP-to-Country Mapping Application

Test.ical.ly Blog: Wrapping symfonys functional tests in a PHPUnit test case

Matt Williams' Blog: High level search with PHP and Apache Solr

PradoSoft.com: PRADO/Wordpress/BBPress integration v1.0...

Zend Developer Zone: Zend_Log timestamp filter


Community Events

Don't see your event here?
Let us know!


introduction laravel part2 example performance interview voicesoftheelephpant conference series podcast framework configure php7 opinion api community language application release symfony2

All content copyright, 2015 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework