3.1.5 is installed fine, it appears on phpinfo and functions work without errors. The only problem is that data is not saved persistantly.

I can do apc_store and apc_fetch inside the same script and on the same instance it will return the stored data fine, but if i use two instance where one stores and the other fetches, the later won't return anything, just like the key doesn't exist.

Also using the apc.php provided i got the following info that may help:

1 Answer
1

With APC you have to use mod_php or PHP-FPM otherwise a new APC cache is created for every process and your requests may not be served from the same process.

You can see this effect by loading up apc.php (APC stats from the APC package) and see how the cache location changes on every request.

With APC I tend to use mod_php on Apache boxes and PHP-FPM on nginx boxes. If anyone knows of any other methods please let me know. There are no plans for APC to fix because it works fine under PHP-FPM.