I'm a bit confused and I'd like to know the difference between the APC, APCu, and OPcache.

I'm using:

  • WHM VPS Apache 2.4
  • PHP 5.5
  • Fastcgi
  • Processor 6 vCores
  • RAM
  • 8 Gio
  • APC development has stopped as far as I know, do you have a specific question or problem? – Wyck Jan 8 '15 at 21:20

The mix up is usually because these extensions are about two unrelated technologies: opcode caching and key-value data store. For WordPress you prefereably want both. Opcode caching is really the "normal" way to run PHP (and lack of it is essentially crippled shared hosting way). Data store can *(and should) be used by WordPress object cache plugins for better persistent caching.

So out of those you named:

  • APC is opcode cache and data store
  • APCu is only data store
  • OPcache is only opcode cache

Since APC is older, at the moment you likely want OPcache as well as some data store, not necessarily APCu (although it is perfectly fine choice).

  • Thanks for u Answer, So if i understanded well you recomend using OPcache & APCu. that s good just 1 last question this wont take so mush memory or cpu from my server if i use both ? Thanks – Dolomats Jan 9 '15 at 14:44
  • @Dolomats yes, that would be viable option, but there would be other alternatives as well (just for context). – Rarst Jan 9 '15 at 14:45
  • Waw 26s and i got answer :d. so just by curiosity what s can be the other alternatives you suggest ! – Dolomats Jan 9 '15 at 14:48
  • @Dolomats Memcache and Redis are typical alternatives for data store. There are several alternate solutions for opcode caching as well, but not as popular relatively. – Rarst Jan 9 '15 at 14:49
  • Memcache is popular was thinking about so memcache do same work as APC then i can use Memcache with OPcode ? or just Memcache instead of both ? – Dolomats Jan 9 '15 at 14:51

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.