protected function buildRouteCollection()
    {
        if (Cache::enabled() && $this->cacheConfig !== null) {
            return Cache::remember(static::ROUTE_COLLECTION_CACHE_KEY, function () {
                return $this->prepareRouteCollection();
            }, $this->cacheConfig);
        }

        return $this->prepareRouteCollection();
    }
protected function buildRouteCollection()
    {
        if (Cache::enabled() && $this->cacheConfig !== null) {
            return Cache::remember(static::ROUTE_COLLECTION_CACHE_KEY, function () {
                return $this->prepareRouteCollection();
            }, $this->cacheConfig);
        }

        return $this->prepareRouteCollection();
    }
protected function buildRouteCollection ( ) { if ( Cache :: enabled ( ) && $ this -> cacheConfig !== null ) { return Cache :: remember ( static :: ROUTE_COLLECTION_CACHE_KEY , function ( ) { return $ this -> prepareRouteCollection ( ) ; } , $ this -> cacheConfig ) ; } return $ this -> prepareRouteCollection ( ) ; }
Check if route cache is enabled and use the configured Cache to 'remember' the route collection

@return \Cake\Routing\RouteCollection
Check if route cache is enabled and use the configured Cache to remember the route collection