public function deleteAll()
    {
        foreach (scandir($this->directory) as $file) {
            if (!in_array($file, ['.', '..', 'keep'])) {
                unlink($this->directory . '/' . $file);
            }
        }
    }
public function deleteAll()
    {
        foreach (scandir($this->directory) as $file) {
            if (!in_array($file, ['.', '..', 'keep'])) {
                unlink($this->directory . '/' . $file);
            }
        }
    }
public function deleteAll ( ) { foreach ( scandir ( $ this -> directory ) as $ file ) { if ( ! in_array ( $ file , [ '.' , '..' , 'keep' ] ) ) { unlink ( $ this -> directory . '/' . $ file ) ; } } }
Removes all cache entries
Removes all cache entries