feat(server/core): generalize caching mechanism, and update getServerInfoFactory
to rely on getServerConfig
dependency
#3791
+627
−154