You are here

function update_storage_clear in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/update/update.module \update_storage_clear()
  2. 9 core/modules/update/update.module \update_storage_clear()

Invalidates stored data relating to update status.

6 calls to update_storage_clear()
UpdateSemverCoreTest::testFetchTasks in core/modules/update/tests/src/Functional/UpdateSemverCoreTest.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_modules_installed in core/modules/update/update.module
Implements hook_modules_installed().
update_modules_uninstalled in core/modules/update/update.module
Implements hook_modules_uninstalled().
update_themes_installed in core/modules/update/update.module
Implements hook_themes_installed().

... See full list

File

core/modules/update/update.module, line 599
Handles updates of Drupal core and contributed projects.

Code

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