public function cacheRouters()
    {
        if (__config()->config->router_cache === true) {
            $cache = new Cache();
            if (!$cache->setAdapter('file')->has('router')) {
                $routers = $this->getRoutes();
                $cache->setAdapter('file')->set('router', $routers, __config()->config->router_cache_regenerate);
            }
        }
    }
public function cacheRouters()
    {
        if (__config()->config->router_cache === true) {
            $cache = new Cache();
            if (!$cache->setAdapter('file')->has('router')) {
                $routers = $this->getRoutes();
                $cache->setAdapter('file')->set('router', $routers, __config()->config->router_cache_regenerate);
            }
        }
    }
public function cacheRouters ( ) { if ( __config ( ) -> config -> router_cache === true ) { $ cache = new Cache ( ) ; if ( ! $ cache -> setAdapter ( 'file' ) -> has ( 'router' ) ) { $ routers = $ this -> getRoutes ( ) ; $ cache -> setAdapter ( 'file' ) -> set ( 'router' , $ routers , __config ( ) -> config -> router_cache_regenerate ) ; } } }
Cache the roouter.

@since 2.0.0

@return void
Cache the roouter .