PHP APC failing in unit tests

greggmumbai

New Member
We use the APC user cache in our application, but I've started noticing various problems in our unit tests specifically related to the APC tests. It seems that eventually APC starts failing to store and retrieve results; while most of the tests continue to run correctly (as they just rebuild data if it's not recovered from the cache) the tests that specifically test that caches are emptied or repopulated when they should be fail, which is somewhat annoying. The same tests run fine if they are ran in isolation, rather than as part of the whole test suite).Questions
  • Has anyone else had similar problems? I can't seem to find much on this through google, aside from problems with the slam_defence setting breaking unit tests (which doesn't seem to be my problem, as it doesn't display any error messages for me).
  • Does anyone know how to get more debugging info out of APC? I detect failure by checking the return code of apc_store() and passing the extra success parameter to apc_fetch(), but all I get from that is a boolean success/failure status; no details on which I can follow up on.
 
Top