control use of cache by config class