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';
		
	}
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';
		
	}
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' ; }
Clear the view cache
Clear the view cache