Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Caching PHP code?

Status
Not open for further replies.

RbgoWeb

Programmer
Apr 10, 2002
91
NL
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.


Want the best answers? Ask the best questions!

TANSTAAFL!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top