1.12.x common.inc backdrop_page_set_cache()
1.10.x common.inc backdrop_page_set_cache()
1.11.x common.inc backdrop_page_set_cache()
1.7.x 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

includes/common.inc, line 5782
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;
}