public function actionCache()
{
$component = $this->_component;
$rr = new RequestResponse();
if ($rr->isRequestAjaxPost()) {
$component->invalidateCache();
$rr->message = 'Кэш успешно очещен';
$rr->success = true;
return (array) $rr;
}
return $this->render($this->action->id, ['component' => $component]);
}