1.20.x 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

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