News Feed
Sections




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

Webdigity.com:
Caching your pages with PHP
July 16, 2007 @ 18:55:00

On the Webdigity.com forums, there's this new tutorial posted showing how to create a simple caching system with PHP for your site (using cached files).

A problem that this process creates is the server overhead. Every time we execute a query in the database, the instance of our script will call the DBMS, and then the DBMS will send the results of the query. This is time consuming, and especially for sites with heavy traffic is a real big problem.

There are two ways to solve this if you want to make your site faster. First is optimizing the queries Visit through proxy, but we will not talk about this at the present article. The second and most valuable is using some kind of custom caching technique.

Their code, contained in an easy-to-use class, makes it simple to cache the contents of a page just by setting the stop to start the caching from (and where to end).

1 comment voice your opinion now!
caching page class file custom temporary caching page class file custom temporary


blog comments powered by Disqus

Similar Posts

Lukas Smith's Blog: MDB2 2.1.0 released

Query7.com: Writing a module for Kohana3

Enrico Zimuel's Blog: XML to JSON in PHP: an odyssey

DevShed: Developing a Modular Class For a PHP File Uploader

PHP -GTK Community Site: A New Trio of Posts (phpISO, a PHP-GTK book, and Dev Inspector)


Community Events





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


interview bugfix community api symfony introduction deployment release library install podcast package voicesoftheelephpant language framework laravel opinion series tips list

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