Skip to content

Commit be845a6

Browse files
allcenturydjmb
authored andcommitted
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.
1 parent c9926eb commit be845a6

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,13 @@ production: &production
6969

7070
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.
7171

72+
After running `solid_cache:install`, `environments/production.rb` will replace your cache store with Solid Cache, but you can also do this manually:
73+
74+
```ruby
75+
# config/environments/production.rb
76+
config.cache_store = :solid_cache_store
77+
```
78+
7279
### Connection configuration
7380

7481
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`.

0 commit comments

Comments
 (0)