_update_cache_clear

Versions
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

▾ 5 functions call _update_cache_clear()

drush_upgrade_site_upgrade in contributions/drush/commands/core/upgrade.drush.inc
A drush command callback.
update_flush_caches in drupal/modules/update/update.module
Implementation of hook_flush_caches().
update_invalidate_cache in drupal/modules/update/update.module
Invalidates all cached data relating to update status.
update_project_cache in drupal/modules/update/update.compare.inc
Retrieve data from {cache_update} or empty the cache when necessary.
_update_refresh in drupal/modules/update/update.fetch.inc
Fetch project info via XML from a central server.

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);
  }
}
?>

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.
  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.
  • Web page addresses and e-mail addresses turn into links automatically.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Image CAPTCHA
Enter the characters shown in the image.