public static function getCachedRoutes() { if (!is_null(self::$cachedRoutes)) { return self::$cachedRoutes; } $cacheFile = sgConfiguration::get('settings.cache_dir') . '/sgRouteCache.cache'; if (is_file($cacheFile) && ($contents = file_get_contents($cacheFile))) { self::$cachedRoutes = unserialize($contents); return true; } return false; }
public function execute() { sgGlue::stick(sgConfiguration::getRouting()); }