function PerformanceForm::submitCacheClear

Same name in other branches
  1. 8.9.x core/modules/system/src/Form/PerformanceForm.php \Drupal\system\Form\PerformanceForm::submitCacheClear()

Clears the caches.

File

core/modules/system/src/Form/PerformanceForm.php, line 191

Class

PerformanceForm
Configure performance settings for this site.

Namespace

Drupal\system\Form

Code

public function submitCacheClear(array &$form, FormStateInterface $form_state) {
    drupal_flush_all_caches();
    $this->messenger()
        ->addStatus($this->t('Caches cleared.'));
}

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