I have a shell background convertor on my video website and I can't seem to get APC to delete a key as a file is uploaded and its visibility is updated. The script is structured like so:
if(file_exists($output_file))
{
$conn->query("UPDATE `foo` SET `bar` = 1 WHERE `id` = ".$id." LIMIT 1");
apc_delete('feed:'.$id);
}
Everything works fine except for the APC and this is the only script on the site that has had this problem. I'm stumped.
You can't access the APC shared memory segment inside of apache from a process external to apache. If you enable APC in CLI mode, CLI scripts simply receive their own shared memory segments.
You can work around this by: