This removes a circular dependency between AppConfig and cache factory. When a cache in the app config is used. Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>