Save PHP opcache to Memcached

Robert De Wilde asked:

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?

My answer:

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.

View the full question and answer on Server Fault.

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.