I'm storing lots of variables in APC per second. At the same time, I have a CRON task which continuously executes a php process for reading the variables from APC, deleting it from APC and storing it in database. The php script get all variables identified by a prefix. The problem is that while a PHP process access to APC, read all variables, delete them from APC and inserts it on database, another process (launched also by CRON) could read the same data because it has not been deleted yet and I would be duplicating data in my database. Is there any solution for this? Maybe it is an APC limitation?
Thanks in advance.
Mark