Stash::flush_cache PHP Метод

flush_cache() публичный Метод

Flush the variables database cache for the current site (Super Admins only)
public flush_cache ( ) : string
Результат string
    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'));
        }
    }