Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Running on small servers it would make sense offloading these as much as possible for performance. Also offloading will prevent from the server becoming a bottleneck. Therefore I use memcached for sessions, database indexes, user data etc.

Question; Would it be possible to connect my PHP (Zend) Opcache to Memcached-cluster?

Ultimately multiple server reusing the opcache from memcached? It would also make it possible to giantly increase my cache size?

share|improve this question

The official answer is no. Opcache only supports caching in shared memory; no other backends even exist. And trying to stuff the cache into memcached would just slow it down anyway, so there seems to be little point.

share|improve this answer
In case of a shared cache its size could be greatly improved (each n seperate vs sum of n's). The more that is cached, the faster it will get, though accesstime could be slower. Also, that it isn't officially supported, I'm still interested in the question if it would be possible? – Robert De Wilde Mar 8 '14 at 11:16

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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