Skip to content

Commit

Permalink
Update README with Manual Configuration
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
allcentury authored and djmb committed Oct 22, 2024
1 parent c9926eb commit be845a6
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`.
Expand Down

0 comments on commit be845a6

Please # to comment.