_update_cache_clear
- 6
_update_cache_clear($cid = NULL)
- 7
_update_cache_clear($cid = NULL, $wildcard = FALSE)
Invalidates specific cached data relating to update status.
Parameters
$cid
Optional cache ID of the record to clear from the private update module
cache. If empty, all records will be cleared from the table.
Related topics
- Private update status cache system
- We specifically do NOT use the core cache API for saving the fetched data
about available updates. It is vitally important that this cache is only
cleared when we're populating it after successfully fetching new available
update data. Usage of…
Code
drupal/modules/update/update.module, line 585
<?php
function _update_cache_clear($cid = NULL) {
if (empty($cid)) {
db_query("TRUNCATE TABLE {cache_update}");
}
else {
db_query("DELETE FROM {cache_update} WHERE cid = '%s'", $cid);
}
}
?>