public function clear()
    {
        echo $path  = $this->getFilePath();
        $files = glob($path . '*' . $this->fileExtension);

        foreach ($files as $file)
        {
            // if cache file expire, delete cache file
            if ( time() > filemtime($file) )
            {
                @unlink($file);
            }
        }
    }
public function clear()
    {
        echo $path  = $this->getFilePath();
        $files = glob($path . '*' . $this->fileExtension);

        foreach ($files as $file)
        {
            // if cache file expire, delete cache file
            if ( time() > filemtime($file) )
            {
                @unlink($file);
            }
        }
    }
public function clear ( ) { echo $ path = $ this -> getFilePath ( ) ; $ files = glob ( $ path . '*' . $ this -> fileExtension ) ; foreach ( $ files as $ file ) { // if cache file expire, delete cache file
 if ( time ( ) > filemtime ( $ file ) ) { @ unlink ( $ file ) ; } } }
Clear expire cache file

@return void
Clear expire cache file