News Feed
Sections




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

PHP-HTML.net:
Creating a Simple PHP Cache Script
March 03, 2010 @ 12:40:28

On the PHP-HTML.net site today there's a new tutorial about creating something that could give your site a pretty big performance boost - a simple method for caching your data.

Cache is a programming concept that can be used in a various range of applications and for various purposes. A cache library can be used for storing database queries for later use, to store rendered pages to be served again without generating them again, or to save indexed pages in a crawler application to be processed by multiple modules.

They include the code to create a very basic filesystem-based caching system for any kind of data you need. It sets expiration times and stores each bit of information in its own cache file to avoid overlap on read/write. This is a pretty simple example of data caching, but it gives you an idea of something that can help speed up your application. If you need something with a little more power, you might check out memcached.

0 comments voice your opinion now!
cache tutorial filesystem memcached


blog comments powered by Disqus

Similar Posts

IBM developerWorks: Understanding the Zend Framework,Part 4: When there is no feed, Zend_HTTP_Client

PHPBuilder.com: Create a Unit Conversion Application w/the Zend_Measure Component

Zend Developer Zone: Creating Multi-Language Web Applications with Zend_Translate

GoodPHPTutorials.com: SQL Injections in PHP with MySQL

Script-Tutorials.com: How to Protect any Site from Spam using Akismet


Community Events





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


community language deployment conference api release framework code threedevsandamaybe podcast development laravel interview tips symfony list bugfix series introduction zendserver

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