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

Syntux Blog:
Advanced Caching Technique - Block Randomization
Aug 21, 2006 @ 21:18:25

In his latest entry to the Synutx blog, Ammar Ibrahim talks about an advanced chaching technique - block randomization.

I'm currenlty working on a site where I want to improve performance of dynamic pages. One of the greatest techniques to do is to cache dynamic content and serve the generated output (HTML). It's not as easy as we all want it to be when you have all sorts of weird blocks on the page: User login area, random content, ..etc

As I had a very pleasent experience with eZ components last week, I decided to take a look at the components, but then i remembered it works on PHP5. This project is on PHP4, I had to look for an alternative and decided to use PEAR::Cache_Lite.

He gives a visual example of what he's working towards and includes some sample code (using Cache_Lite) to create the blocks of content for his site. It took a few tries to get right, but apparently, third time's the charm.

tagged: caching technique advanced block randomize pear cache_lite caching technique advanced block randomize pear cache_lite

Link:

Syntux Blog:
Advanced Caching Technique - Block Randomization
Aug 21, 2006 @ 21:18:25

In his latest entry to the Synutx blog, Ammar Ibrahim talks about an advanced chaching technique - block randomization.

I'm currenlty working on a site where I want to improve performance of dynamic pages. One of the greatest techniques to do is to cache dynamic content and serve the generated output (HTML). It's not as easy as we all want it to be when you have all sorts of weird blocks on the page: User login area, random content, ..etc

As I had a very pleasent experience with eZ components last week, I decided to take a look at the components, but then i remembered it works on PHP5. This project is on PHP4, I had to look for an alternative and decided to use PEAR::Cache_Lite.

He gives a visual example of what he's working towards and includes some sample code (using Cache_Lite) to create the blocks of content for his site. It took a few tries to get right, but apparently, third time's the charm.

tagged: caching technique advanced block randomize pear cache_lite caching technique advanced block randomize pear cache_lite

Link:

Justin Silverton's Blog:
Using PEAR Cache_Lite for High Performance
Mar 02, 2006 @ 00:13:44

On his blog today, Justin Silverton has posted this brief new tutorial covering the use of PEAR's cache_lite package.

Cache_lite is a php/pear caching module that is designed for high traffic sites. It is different than most caching systems because it has a built-in locking mechanism that will prevent cache corruption that can sometimes occur when there are a large amount of concurrent users trying to read and write to your cached data.

He wastes no time getting to the examples, showing first a very basic example of chacing/looking for a cache of your data. There's no installation HOWTO, but if you're familiar with the PEAR system, installation should be a simple matter.

tagged: pear cache_lite high performance introduction pear cache_lite high performance introduction

Link:

Justin Silverton's Blog:
Using PEAR Cache_Lite for High Performance
Mar 02, 2006 @ 00:13:44

On his blog today, Justin Silverton has posted this brief new tutorial covering the use of PEAR's cache_lite package.

Cache_lite is a php/pear caching module that is designed for high traffic sites. It is different than most caching systems because it has a built-in locking mechanism that will prevent cache corruption that can sometimes occur when there are a large amount of concurrent users trying to read and write to your cached data.

He wastes no time getting to the examples, showing first a very basic example of chacing/looking for a cache of your data. There's no installation HOWTO, but if you're familiar with the PEAR system, installation should be a simple matter.

tagged: pear cache_lite high performance introduction pear cache_lite high performance introduction

Link:


Trending Topics: