src/FS/File/Cache.php
public function flush()
	{
		$index	= new DirectoryIterator( $this->path );
		$number	= 0;
		foreach( $index as $entry )
		{
			if( $entry->isDot() || $entry->isDir() )
				continue;
			if( substr( $entry->getFilename(), -7 ) == ".serial" )
				$number	+= (int) @unlink( $entry->getPathname() );
		}
		$this->data	= array();
		return $number;
	}
public function flush()
	{
		$index	= new DirectoryIterator( $this->path );
		$number	= 0;
		foreach( $index as $entry )
		{
			if( $entry->isDot() || $entry->isDir() )
				continue;
			if( substr( $entry->getFilename(), -7 ) == ".serial" )
				$number	+= (int) @unlink( $entry->getPathname() );
		}
		$this->data	= array();
		return $number;
	}
public function flush ( ) { $ index = new DirectoryIterator ( $ this -> path ) ; $ number = 0 ; foreach ( $ index as $ entry ) { if ( $ entry -> isDot ( ) || $ entry -> isDir ( ) ) continue ; if ( substr ( $ entry -> getFilename ( ) , - 7 ) == ".serial" ) $ number += ( int ) @ unlink ( $ entry -> getPathname ( ) ) ; } $ this -> data = array ( ) ; return $ number ; }
Removes all Cache Files.
@access		public
@return		bool
Removes all Cache Files .