protected function refillCache()
    {

        // lets clear the cache so we can fill it anew
        foreach (new \DirectoryIterator($this->getConfig()->getValue('cache/dir')) as $fileInfo) {
            if (!$fileInfo->isDot() && !$fileInfo->isDir()) {
                // unlink the file
                unlink($fileInfo->getPathname());
            }
        }

        // lets create the definitions anew
        return $this->createDefinitions();
    }
protected function refillCache()
    {

        // lets clear the cache so we can fill it anew
        foreach (new \DirectoryIterator($this->getConfig()->getValue('cache/dir')) as $fileInfo) {
            if (!$fileInfo->isDot() && !$fileInfo->isDir()) {
                // unlink the file
                unlink($fileInfo->getPathname());
            }
        }

        // lets create the definitions anew
        return $this->createDefinitions();
    }
protected function refillCache ( ) { // lets clear the cache so we can fill it anew foreach ( new \ DirectoryIterator ( $ this -> getConfig ( ) -> getValue ( 'cache/dir' ) ) as $ fileInfo ) { if ( ! $ fileInfo -> isDot ( ) && ! $ fileInfo -> isDir ( ) ) { // unlink the file unlink ( $ fileInfo -> getPathname ( ) ) ; } } // lets create the definitions anew return $ this -> createDefinitions ( ) ; }
We will refill the cache dir by emptying it and filling it again

@return bool
We will refill the cache dir by emptying it and filling it again