Use correct options for `config.cache_store`

Fixes #3345