apc_delete() not working in background script
Posted
by Jared
on Stack Overflow
See other posts from Stack Overflow
or by Jared
Published on 2010-04-22T01:37:09Z
Indexed on
2010/04/22
1:43 UTC
Read the original article
Hit count: 247
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.
© Stack Overflow or respective owner