function apc_shutdown

cis7 apc.module apc_shutdown()
cle7 apc.module apc_shutdown()
elmsmedia7 apc.module apc_shutdown()
icor7 apc.module apc_shutdown()
meedjum_blog7 apc.module apc_shutdown()
mooc7 apc.module apc_shutdown()

See apc_init() which registers this function as a shutdown function. Displays apc stats in the footer.

1 string reference to 'apc_shutdown'
apc_init in sites/all/modules/ulmus/apc/apc.module
Implementation of hook_init().


sites/all/modules/ulmus/apc/apc.module, line 53
This integrates the drupal APC cache module.


function apc_shutdown() {
  global $apc_statistics;

  // Don't call theme() during shutdown if the registry has been rebuilt (such
  // as when enabling/disabling modules on admin/build/modules) as things break.
  // Instead, simply exit without displaying admin statistics for this page
  // load.  See for discussion.
  if (!function_exists('theme_get_registry') || !theme_get_registry()) {

  // Try not to break non-HTML pages.
  if (function_exists('drupal_get_http_header')) {
    $header = drupal_get_http_header('content-type');
    if ($header) {
      $formats = array(
      foreach ($formats as $format) {
        if (strstr($header, $format)) {

  if (isset($apc_statistics) && is_array($apc_statistics)) {
    print '<div id="apc-devel"><h2>' . t('APC statistics') . '</h2>';
    $rows = array();

    foreach ($apc_statistics as $row) {
      if (is_array($row[2])) {
        $row[2] = implode(',<br />', $row[2]);
      $rows[] = $row;
    print theme('table', array(
      'header' => array(('Type'), t('Bin'), t('Cid(s)')),
      'rows' => $rows,
    print '</div>';



Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/ in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/
The website encountered an unexpected error. Please try again later.