public function clearCache(){
		$path = Yii::getAlias('webroot').$this->getAssetsUrl().DIRECTORY_SEPARATOR.$this->folder.DIRECTORY_SEPARATOR.'*';

		$files = glob($path);

		foreach($files as $file){
			if(is_file($file))
				unlink($file);
		}
	}
public function clearCache(){
		$path = Yii::getAlias('webroot').$this->getAssetsUrl().DIRECTORY_SEPARATOR.$this->folder.DIRECTORY_SEPARATOR.'*';

		$files = glob($path);

		foreach($files as $file){
			if(is_file($file))
				unlink($file);
		}
	}
public function clearCache ( ) { $ path = Yii :: getAlias ( 'webroot' ) . $ this -> getAssetsUrl ( ) . DIRECTORY_SEPARATOR . $ this -> folder . DIRECTORY_SEPARATOR . '*' ; $ files = glob ( $ path ) ; foreach ( $ files as $ file ) { if ( is_file ( $ file ) ) unlink ( $ file ) ; } }
Clear cache by removing all cache files from assets.
Also you can just clear assets

@return $this
Clear cache by removing all cache files from assets . Also you can just clear assets