public function clearcache ()
	{
		
		if ($this->view instanceof \Sonic\View\Smarty)
		{
			$this->view->clearCompiledTemplate ();
			$this->view->clearAllCache ();
		}
		
		new \Sonic\Message ('success', 'Cache Cleared');
		$this->template = 'tools/index.tpl';
		
	}