added config setting to choose the cache