Is there a way to cache an amouth of code for a part of a website? Some includes will always be required in compiled state, like symbolic constants and functions. Do they need to be read, parsed, interpreted/compiled for each request?
PHP uses the same technique that perl uses -- PHP compiles code into memory, then runs that compiled version. I know that the mod_perl Apache module, which runs perl as an Apache plugin, caches code in memory to speed execution.
Unfortunately, I don't know whether the compiled caching is true for PHP, too, or not. I am fairly sure not, but I have no definite data on this.
There are a number of PHP caching products out there.[ul][li]For-pay software:[/li][ul][li]Zend (the publisher of PHP) publishes Zend Accelerator[/li][/ul][li]Free software[/li][ul][li]Turck MMCache[/li][li]Afterburner Cache[/li][li]PHP Accelerator[/li][/ul][/ul]
I've never used any of these products, but I have heard good comments about Zend Accelerator, Turck MMCache and PHP Accelerator.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.