/var/www/vhosts/ihelp.ro/httpdocs/vendor/cakephp/debug_kit/src/Controller
NameSizeModeActions
ComposerController.php35600644editdlrm
DashboardController.php19370644editdlrm
DebugKitController.php19260644editdlrm
MailPreviewController.php90610644editdlrm
PanelsController.php34890644editdlrm
RequestsController.php16600644editdlrm
ToolbarController.php16920644editdlrm
Edit: /var/www/vhosts/ihelp.ro/httpdocs/vendor/cakephp/debug_kit/src/Controller/ToolbarController.php (1692B)
loadComponent('RequestHandler'); } /** * Clear a named cache. * * @return void * @throws \Cake\Http\Exception\NotFoundException */ public function clearCache() { $this->request->allowMethod('post'); $name = $this->request->getData('name'); if (!$name) { throw new NotFoundException('Invalid cache engine name.'); } $success = Cache::clear($name); $message = $success ? sprintf('%s cache cleared.', $name) : sprintf('%s cache could not be cleared.', $name); $this->set(compact('success', 'message')); $this->viewBuilder()->setOption('serialize', ['success', 'message']); } }