| Versionen | |
|---|---|
| drupal6 – drupal7 | _update_cache_clear($cid = NULL) |
Invalidates cached data relating to update status.
$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.
modules/
<?php
function _update_cache_clear($cid = NULL) {
$query = db_delete('cache_update');
if (!empty($cid)) {
$query->condition('cid', $cid);
}
$query->execute();
}
?>
Kommentare
Kommentar hinzufügen