public function clear()
	{
		$cacheDir = PATH_APP . DS . 'cache';
		$files    = array('site.css', 'site.less.cache');

		// Remove each file
		foreach ($files as $file)
		{
			if (!is_file($cacheDir . DS . $file))
			{
				$this->output->addLine($file . ' does not exist', 'warning');
				continue;
			}

			if (!Filesystem::delete($cacheDir . DS . $file))
			{
				$this->output->addLine('Unable to delete cache file: ' . $file, 'error');
			}
			else
			{
				$this->output->addLine($file . ' deleted', 'success');
			}
		}

		// success!
		$this->output->addLine('All CSS cache files removed!', 'success');
	}
public function clear()
	{
		$cacheDir = PATH_APP . DS . 'cache';
		$files    = array('site.css', 'site.less.cache');

		// Remove each file
		foreach ($files as $file)
		{
			if (!is_file($cacheDir . DS . $file))
			{
				$this->output->addLine($file . ' does not exist', 'warning');
				continue;
			}

			if (!Filesystem::delete($cacheDir . DS . $file))
			{
				$this->output->addLine('Unable to delete cache file: ' . $file, 'error');
			}
			else
			{
				$this->output->addLine($file . ' deleted', 'success');
			}
		}

		// success!
		$this->output->addLine('All CSS cache files removed!', 'success');
	}
public function clear ( ) { $ cacheDir = PATH_APP . DS . 'cache' ; $ files = array ( 'site.css' , 'site.less.cache' ) ; // Remove each file foreach ( $ files as $ file ) { if ( ! is_file ( $ cacheDir . DS . $ file ) ) { $ this -> output -> addLine ( $ file . ' does not exist' , 'warning' ) ; continue ; } if ( ! Filesystem :: delete ( $ cacheDir . DS . $ file ) ) { $ this -> output -> addLine ( 'Unable to delete cache file: ' . $ file , 'error' ) ; } else { $ this -> output -> addLine ( $ file . ' deleted' , 'success' ) ; } } // success! $ this -> output -> addLine ( 'All CSS cache files removed!' , 'success' ) ; }
Clear Site.css & Site.less.cache files

@return  void
Clear Site . css & Site . less . cache files