function _update_authorize_clear_update_status

_update_authorize_clear_update_status()

Clears available update status data.

Since this function is run at such a low bootstrap level, the Update Manager module is not loaded. So, we can't just call update_storage_clear(). However, the key-value backend is available, so we just call that.

Note that we do not want to delete items related to currently pending fetch attempts.

See also

update_authorize_update_batch_finished()

update_storage_clear()

File

core/modules/update/update.authorize.inc, line 367
Callbacks and related functions invoked by authorize.php to update projects.

Code

function _update_authorize_clear_update_status() {
  \Drupal::keyValueExpirable('update')->deleteAll();
  \Drupal::keyValueExpirable('update_available_release')->deleteAll();
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!modules!update!update.authorize.inc/function/_update_authorize_clear_update_status/8.1.x