1 update.module _update_cache_get($cid)

Retrieves data from the private update status cache table.


$cid: The cache ID to retrieve.

Return value

An array of data for the given cache ID, or NULL if the ID was not found.:

See also


Related topics


core/modules/update/update.module, line 592
Handles update checking for Backdrop core and contributed projects.


function _update_cache_get($cid) {
  $cache = db_query("SELECT data, created, expire, serialized FROM {cache_update} WHERE cid = :cid", array(':cid' => $cid))->fetchObject();
  if (isset($cache->data)) {
    if ($cache->serialized) {
      $cache->data = unserialize($cache->data);
  return $cache;