function apc_handle_delete in APC - Alternative PHP Cache 6
Same name and namespace in other branches
- 5 apc.inc \apc_handle_delete()
Delete data from the apc cache
Parameters
$key: The key of the data to retrieve.
$bin: The bin/silo to look in.
1 call to apc_handle_delete()
- cache_clear_all in ./
apc.inc
File
- ./
apc.inc, line 170
Code
function apc_handle_delete($key, $bin = 'cache') {
global $apc_page_stats;
$apc_page_stats['delete']++;
if (!empty($key) && !empty($data)) {
$full_key = apc_handle_key($key, $bin);
if (!apc_delete($full_key)) {
watchdog('apc', 'Failed to delete key: ' . $full_key, WATCHDOG_ERROR);
$return = FALSE;
}
else {
$return = TRUE;
}
}
}