I have seen this: How to clear APC cache entries?
And I have this working per file:
$filename = '/home/testing_code/abc.php';
if (apc_compile_file($filename)) {
if (apc_delete_file($filename)) {
echo "Successfully deleted file $filename from APC cache.<br>", PHP_EOL;
}
}
No matter how I play with it, I cant find a way to clear based on a Directory, anyone know how to do this?
i.e. something like this:
$filename = '/home/testing_code/*.php';
if (apc_compile_file($filename)) {
if (apc_delete_file($filename)) {
echo "Successfully deleted file $filename from APC cache.<br>", PHP_EOL;
}
}