From be845a6380378cd3ee3e85f241ecc8ae87d4c706 Mon Sep 17 00:00:00 2001 From: Anthony Ross Date: Fri, 18 Oct 2024 07:59:14 -0700 Subject: [PATCH] Update README with Manual Configuration Today the install_generator performs a gsub if there's an existing cache_store set, but if there isn't it does nothing. It wasn't obvious that `cache_store` should be set to `solid_cache_store` so adding manual instructions for those upgrading or using cache for the first time. --- README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/README.md b/README.md index 1ab021a..4145c47 100644 --- a/README.md +++ b/README.md @@ -69,6 +69,13 @@ production: &production For the full list of keys for `store_options` see [Cache configuration](#cache-configuration). Any options passed to the cache lookup will overwrite those specified here. +After running `solid_cache:install`, `environments/production.rb` will replace your cache store with Solid Cache, but you can also do this manually: + +```ruby +# config/environments/production.rb +config.cache_store = :solid_cache_store +``` + ### Connection configuration You can set one of `database`, `databases` and `connects_to` in the config file. They will be used to configure the cache databases in `SolidCache::Record#connects_to`.