function _update_cache_get
Same name and namespace in other branches
- 6.x drupal-6.x/modules/update/update.module \_update_cache_get()
Retrieves data from the private update status cache table.
Parameters
$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
2 calls to _update_cache_get()
- update_project_cache in drupal-7.x/
modules/ update/ update.compare.inc - Retrieves data from {cache_update} or empties the cache when necessary.
- _update_process_fetch_task in drupal-7.x/
modules/ update/ update.fetch.inc - Processes a task to fetch available update data for a single project.
Archivo
- drupal-7.x/
modules/ update/ update.module, line 799 - Handles updates of Drupal core and contributed projects.
Código
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;
}