setting cache after configuring config object