| 6 update.module | _update_cache_clear($cid = NULL) |
| 7 update.module | _update_cache_clear($cid = NULL, $wildcard = FALSE) |
| 8 update.module | _update_cache_clear($cid = NULL, $wildcard = FALSE) |
Invalidates 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 except fetch tasks.
$wildcard: If $wildcard is TRUE, cache IDs starting with $cid are deleted in addition to the exact cache ID specified by $cid.
Related topics
10 calls to _update_cache_clear()
File
- modules/
update/ update.module, line 818 - The "Update status" module checks for available updates of Drupal core and any installed contributed modules and themes. It warns site administrators if newer releases are available via the system status report (admin/reports/status), the…
Code
function _update_cache_clear($cid = NULL, $wildcard = FALSE) {
if (empty($cid)) {
db_delete('cache_update')
// Clear everything except fetch task information because these are used
// to ensure that the fetch task queue items are not added multiple times.
->condition('cid', 'fetch_task::%', 'NOT LIKE')
->execute();
}
else {
$query = db_delete('cache_update');
if ($wildcard) {
$query->condition('cid', $cid . '%', 'LIKE');
}
else {
$query->condition('cid', $cid);
}
$query->execute();
}
}
Login or register to post comments