Charles Johnson
Charles Johnson

Reputation: 741

Is it still worthwhile to install the 'eaccelerator' PHP compiler cache?

Back in the PHP 4 Jurassic Era, I often installed a PHP extension called 'eaccelerator' to boost the performance of PHP by caching the compiled byte code.

I've read elsewhere that with PHP 5, the need for add-ons like eaccelerator has decreased, but is there still enough of a speed difference to make it worth installing on Linux servers?

Upvotes: 2

Views: 587

Answers (2)

ceejayoz
ceejayoz

Reputation: 180014

Yes, opcode caches still make a dramatic performance difference.
Most are using APC over eAccelerator these days, though.

Upvotes: 5

ajreal
ajreal

Reputation: 47321

No, eAccelerator is no longer actively maintained (as no evidence exists demonstrate it is).

I would say it's worth the effort to go forward with APC or another, more modern and actively maintained accelerator technology. If you are looking for OP code caching technology, go with APC, which is popular, has more library support, and is actively maintained. It will also apparently be included in a future PHP 6 release.

You might read this answer to another similar question, which suggests that eAccelerator may be viable if you take into account the deficiencies (probable lack of PHP 6 support, older and apparently unmaintained, etc.) and still want to use something you have a certain preexisting comfort level. It just depends on your needs and the environment you work in.

Upvotes: 1

Related Questions