1 common.inc backdrop_page_save_cache($cache)

Save a page cache entry to the cache.

Parameters

stdClass $cache: A cache entry object to be written to the cache backend.

File

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

Code

function backdrop_page_save_cache($cache) {
  if ($cache->data['body']) {
    cache('page')->set($cache->cid, $cache->data, $cache->expire);
  }
}