use config for cache