public function CacheflushApi::clearAll in CacheFlush 8
Clear all caches.
Return value
\Symfony\Component\HttpFoundation\RedirectResponse Redirect path.
See also
1 string reference to 'CacheflushApi::clearAll'
File
- src/
Controller/ CacheflushApi.php, line 63
Class
- CacheflushApi
- Returns responses for Cacheflush routes.
Namespace
Drupal\cacheflush\ControllerCode
public function clearAll() {
drupal_flush_all_caches();
$this->messenger
->addMessage($this
->t('Cache cleared.'));
return $this
->redirectUrl();
}