1 common.inc backdrop_page_set_cache()

Stores the current page in the cache.

This function is no longer used by core but is preserved for backwards-compatibility.

Deprecated

since 1.3.0

File

core/includes/common.inc, line 6049
Common functions that many Backdrop modules will need to reference.

Code

function backdrop_page_set_cache() {
  watchdog_deprecated_function('common', __FUNCTION__);
  $cache = FALSE;
  if (backdrop_page_is_cacheable()) {
    $page_content = ob_get_clean();
    $cache = backdrop_page_create_cache($page_content);
    backdrop_page_save_cache($cache);
  }
  return $cache;
}