3

What's the proper way to upgrade php and the APC caching mechanism to the newer/better OPcache? Is there a specific tool or reconfiguration script?

Peter Petrik
  • 429
  • 4
  • 5
  • Best way is to decouple your cache storage, so that it would be easy to switch not only from APC to OPCache, but from whatever to whatever (Redis to Memcached etc). You should simply define an `interface` that they must implement – Yang Nov 05 '14 at 14:43

1 Answers1

2

Best place to start would be with the official OPcache resource: http://php.net/manual/en/book.opcache.php

Peter Petrik
  • 429
  • 4
  • 5
  • Peter, the first thing to note is that APC does data and Opcode caching, but OPCache only does the latter. You also need to install APCu is your applications use APC data caching. At an application level its pretty transparent unless you have apps which use the APC management calls and these will need to be rewritten to use the OPCache equivalents. – TerryE Nov 05 '14 at 18:06