eaccelerator

Choosing a PHP caching technique: output caching into files vs. opcode caching

空扰寡人 提交于 2019-11-30 04:06:08
问题 I've heard of two caching techniques for the PHP code: When a PHP script generates output it stores it into local files. When the script is called again it check whether the file with previous output exists and if true returns the content of this file. It's mostly done with playing around the "output buffer". Somthing like this is described in this article. Using a kind of opcode caching plugin, where the compiled PHP code is stored in memory. The most popular of this one is APC, also

apc vs eaccelerator vs xcache

本小妞迷上赌 提交于 2019-11-26 21:25:46
Im doing research on which one of these to use and I can't really find one that stands out. Eaccelerator is faster than APC , but APC is better maintained. Xcache is faster but the others have easier syntax. Anyone have recommendations on which to use and why? APC is going to be included in PHP 6, and I'd guess it has been chosen for good reason :) It's fairly easy to install and certainly speeds things up. Check out benchmarks and comparisons: here and here and there APC definitely. It's written by the PHP guys, so even though it might not share the highest speeds, you can bet on the fact it