_update_cache_clear

  1. drupal
    1. drupal6
    2. drupal7
Versionen
drupal6 – drupal7 _update_cache_clear($cid = NULL)

Invalidates cached data relating to update status.

Übergabeparameter

$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.

Verwandte Themen

▾ 4 functions call _update_cache_clear()

update_cache_clear_submit in modules/update/update.module
Helper function for use as a form submit callback.
update_flush_caches in modules/update/update.module
Implementation of hook_flush_caches().
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 590

<?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

Der Inhalt dieses Feldes wird nicht öffentlich zugänglich angezeigt.
  • Internet- und E-Mail-Adressen werden automatisch umgewandelt.
  • Zulässige HTML-Tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Zeilen und Absätze werden automatisch erzeugt.

Weitere Informationen über Formatierungsoptionen

Kommentar hinzufügen

Der Inhalt dieses Feldes wird nicht öffentlich zugänglich angezeigt.
  • Internet- und E-Mail-Adressen werden automatisch umgewandelt.
  • Zulässige HTML-Tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Zeilen und Absätze werden automatisch erzeugt.

Weitere Informationen über Formatierungsoptionen