Skip to content

Instantly share code, notes, and snippets.

@anthonysomerset
Created September 6, 2012 10:39
Show Gist options
  • Save anthonysomerset/3654655 to your computer and use it in GitHub Desktop.
Save anthonysomerset/3654655 to your computer and use it in GitHub Desktop.
apc clear cache - for apc.stat=0
<?php
if ($_GET['token'] != 'somesecretpass') {
header("HTTP/1.0 404 Not Found");
exit;
}
apc_clear_cache();
apc_clear_cache('opcode');
echo json_encode(array('success' => true));
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment