You are here

function performance_clear_apc in Performance Logging and Monitoring 7

Same name and namespace in other branches
  1. 6 performance.module \performance_clear_apc()

Clear APC confirm form submit handler.

File

./performance.module, line 571
Logs detailed and/or summary page generation time and memory consumption for page requests. Copyright Khalid Baheyeldin 2008 of http://2bits.com

Code

function performance_clear_apc() {
  $list = performance_apc_list_all();
  if (!count($list)) {

    // Nothing stored yet
    return;
  }
  foreach ($list as $key) {
    if ($data = apc_fetch($key)) {
      apc_delete($key);
    }
  }
}