You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
Copy file name to clipboardExpand all lines: README.md
+7Lines changed: 7 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -69,6 +69,13 @@ production: &production
69
69
70
70
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.
71
71
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
+
72
79
### Connection configuration
73
80
74
81
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