protected function handleCorruptCache($data)
    {
        $path = array_get($data, 'filePath', $this->getCacheFilePath());

        if (is_file($path)) {
            if (($className = $this->extractClassFromFile($path)) && class_exists($className)) {
                $data['className'] = $className;
                return $data;
            }

            @unlink($path);
        }

        unset(self::$cache[$this->filePath]);

        return $this->parse();
    }
protected function handleCorruptCache($data)
    {
        $path = array_get($data, 'filePath', $this->getCacheFilePath());

        if (is_file($path)) {
            if (($className = $this->extractClassFromFile($path)) && class_exists($className)) {
                $data['className'] = $className;
                return $data;
            }

            @unlink($path);
        }

        unset(self::$cache[$this->filePath]);

        return $this->parse();
    }
protected function handleCorruptCache ( $ data ) { $ path = array_get ( $ data , 'filePath' , $ this -> getCacheFilePath ( ) ) ; if ( is_file ( $ path ) ) { if ( ( $ className = $ this -> extractClassFromFile ( $ path ) ) && class_exists ( $ className ) ) { $ data [ 'className' ] = $ className ; return $ data ; } @ unlink ( $ path ) ; } unset ( self :: $ cache [ $ this -> filePath ] ) ; return $ this -> parse ( ) ; }
In some rare cases the cache file will not contain the class
name we expect. When this happens, destroy the corrupt file,
flush the request cache, and repeat the cycle.
@return void
In some rare cases the cache file will not contain the class name we expect . When this happens destroy the corrupt file flush the request cache and repeat the cycle .