You are here

function _update_status_cache_get in Update Status 5.2

Retrieve data from the private update status cache table.

Parameters

$cid: The cache ID to retrieve.

Return value

The data for the given cache ID, or NULL if the ID was not found.

Related topics

3 calls to _update_status_cache_get()
update_status_cron in ./update_status.module
Implementation of hook_cron().
update_status_get_available in ./update_status.module
Internal helper to try to get the update information from the cache if possible, and to refresh the cache when necessary.
update_status_project_cache in ./update_status.module
Retrieve data from {cache_update_status} or empty the cache when necessary.

File

./update_status.module, line 1874

Code

function _update_status_cache_get($cid) {
  $cache = db_fetch_object(db_query("SELECT data, created, expire FROM {cache_update_status} WHERE cid = '%s'", $cid));
  if (isset($cache->data)) {
    $cache->data = db_decode_blob($cache->data);
  }
  return $cache;
}