drupal_page_footer

Versions
mediamosa-21
drupal_page_footer()

Perform end-of-request tasks.

This function sets the page cache if appropriate, and allows modules to react to the closing of the page by calling hook_exit().

▾ 2 functions call drupal_page_footer()

devel_exit in sites/all/modules/devel/devel.module
drupal_deliver_html_page in includes/common.inc
Package and send the result of a page callback to the browser as HTML.

Code

includes/common.inc, line 2420

<?php
function drupal_page_footer() {
  global $user;

  module_invoke_all('exit');

  // Commit the user session, if needed.
  drupal_session_commit();

  if (variable_get('cache', CACHE_DISABLED) != CACHE_DISABLED && ($cache = drupal_page_set_cache())) {
    drupal_serve_page_from_cache($cache);
  }
  else {
    ob_flush();
  }

  _registry_check_code(REGISTRY_WRITE_LOOKUP_CACHE);
  drupal_cache_system_paths();
  module_implements_write_cache();
  system_run_automated_cron();
}
?>