_update_cache_get
- Versions
- 6 – 7
_update_cache_get($cid)
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
Code
modules/update/update.module, line 567
<?php
function _update_cache_get($cid) {
$cache = db_fetch_object(db_query("SELECT data, created, expire, serialized FROM {cache_update} WHERE cid = '%s'", $cid));
if (isset($cache->data)) {
$cache->data = db_decode_blob($cache->data);
if ($cache->serialized) {
$cache->data = unserialize($cache->data);
}
}
return $cache;
}
?>Login or register to post comments 