function update_storage_clear

Same name in other branches
  1. 9 core/modules/update/update.module \update_storage_clear()
  2. 10 core/modules/update/update.module \update_storage_clear()
  3. 11.x core/modules/update/update.module \update_storage_clear()

Invalidates stored data relating to update status.

5 calls to update_storage_clear()
UpdateCoreTest::testFetchTasks in core/modules/update/tests/src/Functional/UpdateCoreTest.php
Tests that exactly one fetch task per project is created and not more.
UpdateSettingsForm::submitForm in core/modules/update/src/UpdateSettingsForm.php
Form submission handler.
update_storage_clear_submit in core/modules/update/update.module
Form submission handler for system_modules().
update_themes_installed in core/modules/update/update.module
Implements hook_themes_installed().
update_themes_uninstalled in core/modules/update/update.module
Implements hook_themes_uninstalled().

File

core/modules/update/update.module, line 736

Code

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.