Clears the caches.
File
- drupal/core/modules/system/lib/Drupal/system/Form/PerformanceForm.php, line 167
- Contains \Drupal\system\Form\PerformanceForm.
Class
- PerformanceForm
- Configure performance settings for this site.
Namespace
Drupal\system\Form
Code
public function submitCacheClear(array &$form, array &$form_state) {
drupal_flush_all_caches();
drupal_set_message(t('Caches cleared.'));
}