You are here

function performance_apc_list_all in Performance Logging and Monitoring 5

Same name and namespace in other branches
  1. 6 performance.module \performance_apc_list_all()
  2. 7 performance.module \performance_apc_list_all()
3 calls to performance_apc_list_all()
performance_clear_apc_confirm_submit in ./performance.module
performance_cron_apc_prune in ./performance.module
performance_view_summary in ./performance.module

File

./performance.module, line 327

Code

function performance_apc_list_all() {
  $key_list = array();
  $list = apc_cache_info('user');
  foreach ($list['cache_list'] as $cache_id => $cache_data) {
    $regex = '/^' . PERFORMANCE_KEY . '/';
    if (preg_match($regex, $cache_data['info'])) {
      $key_list[] = $cache_data['info'];
    }
  }
  return $key_list;
}