public function flush_cache()
{
if ($this->EE->session->userdata['group_title'] == "Super Admins") {
if ($this->EE->stash_model->flush_cache($this->site_id)) {
return $this->EE->lang->line('cache_flush_success');
}
} else {
// not authorised
$this->EE->output->show_user_error('general', $this->EE->lang->line('not_authorized'));
}
}