Friday, March 10, 2006

PHP Script Caching

PHP, a scripting language for template-based dynamic page generation, is often compiled at runtime implicitly. This is for making its execution faster, comparing to interprit it without compilation. In normal PHP engine, this compilation occurs whenever each page accessed.

The overhead of compilation can be avoided if the result of compilation in the previous execution of the same PHP page is remembered by the engine. This technique is well-known and sometimes called script caching. In a PHP engine with script caching, it caches each PHP script in a compiled state so that it can reuse the cache for another page (script) access.

Here, I listed links to major, freely-available caching plugins for the standard PHP engine.

No comments: