function _update_cache_clear

7.x update.module _update_cache_clear($cid = NULL, $wildcard = FALSE)
6.x update.module _update_cache_clear($cid = NULL)

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

4 calls to _update_cache_clear()
update_flush_caches in drupal-6.x/modules/update/update.module
Implementation of hook_flush_caches().
update_invalidate_cache in drupal-6.x/modules/update/update.module
Invalidates all cached data relating to update status.
update_project_cache in drupal-6.x/modules/update/update.compare.inc
Retrieve data from {cache_update} or empty the cache when necessary.
_update_refresh in drupal-6.x/modules/update/update.fetch.inc
Fetch project info via XML from a central server.

File

drupal-6.x/modules/update/update.module, line 585
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) {
  if (empty($cid)) {
    db_query("TRUNCATE TABLE {cache_update}");
  }
  else {
    db_query("DELETE FROM {cache_update} WHERE cid = '%s'", $cid);
  }
}