News Feed
Sections




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

Ibzi's Blog:
Start caching all your pages in 5 steps
February 19, 2007 @ 10:12:00

On ibzi's blog today, there's a quick guide to introducing caching to your PHP application via a simple PHP file to create the cached pages.

Caching your pages can be pretty useful, especially if you have PHP-generated pages that uses a lot of MySQL queries. Once your pages are cached, your server won't waste speed and RAM on regenerating the pages, it will just load it from the cache. I'm going to show you how to get PHP to cache your pages, and you can probably do this within 5 minutes.

You'll need to be able to add (and use) an .htaccess file for Apache to use this method, but once it's set up, the simple script works like a charm. It prepends the caching functionality to each page and checks to see if a copy already exists. If it does, it displays it and if not, it will display it and create the cached file.

2 comments voice your opinion now!
cache application simple tutorial apache htaccess prepend append cache application simple tutorial apache htaccess prepend append


blog comments powered by Disqus

Similar Posts

Yahoo Business: WSO2 Web Services Framework for PHP

Ibuildings techPortal: Behavior Driven Development in PHP With Behat

Andy Bakun's Blog: Race Conditions with Ajax and PHP Sessions

Alexander Netkachev's Blog: Installing Propel object persistence layer for Web application

DevShed: Inserting Comments and Accessing Nodes with the DOM XML Extension in PHP 5


Community Events

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


list language security opinion library php7 version series api extension community laravel5 interview release example introduction podcast framework laravel voicesoftheelephpant

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