Skip to content

Commit 0189b78

Browse files
committed
fix solid cache store
1 parent 608528a commit 0189b78

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

docs/3.0/cache.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,9 @@ $ bin/rails db:migrate
135135
To set Solid Cache as your Rails cache, you should add this to your environment config:
136136

137137
```ruby
138-
config.cache_store = :solid_cache_store
138+
config.cache_store = -> {
139+
ActiveSupport::Cache.lookup_store(:solid_cache_store)
140+
}
139141
```
140142

141143
Check [Solid Cache repository](https://github.com/rails/solid_cache) for additional valuable information.

0 commit comments

Comments
 (0)