public function DevelController::cacheClear in Devel 8
Same name and namespace in other branches
- 8.3 src/Controller/DevelController.php \Drupal\devel\Controller\DevelController::cacheClear()
- 8.2 src/Controller/DevelController.php \Drupal\devel\Controller\DevelController::cacheClear()
- 4.x src/Controller/DevelController.php \Drupal\devel\Controller\DevelController::cacheClear()
Clears all caches, then redirects to the previous page.
1 string reference to 'DevelController::cacheClear'
File
- src/
Controller/ DevelController.php, line 44
Class
- DevelController
- Returns responses for devel module routes.
Namespace
Drupal\devel\ControllerCode
public function cacheClear() {
drupal_flush_all_caches();
drupal_set_message('Cache cleared.');
return $this
->redirect('<front>');
}