_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

▾ 4 functions call _update_cache_clear()

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

Code

modules/update/update.module, line 585

<?php
function _update_cache_clear($cid = NULL) {
  if (empty($cid)) {
    db_query("DELETE FROM {cache_update}");
  }
  else {
    db_query("DELETE FROM {cache_update} WHERE cid = '%s'", $cid);
  }
}
?>
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.