Fixed cache_store name used in adding other modules section of api app documentation. [ci skip]

- Using `mem_cached_store` results in an exception as lib/active_support/cache.rb:106:in `rescue in retrieve_store_class': Could not find cache store adapter for mem_cached_store (cannot load such file -- active_support/cache/mem_cached_store) (RuntimeError)
- Changed the name of cache_store as `mem_cache_store` instead of `mem_cached_store`
This commit is contained in:
Akshay Mohite 2019-08-07 20:34:55 +05:30
parent c2f197c775
commit e29fb52074
No known key found for this signature in database
GPG Key ID: E809CFD70271B97F
1 changed files with 1 additions and 1 deletions

View File

@ -425,7 +425,7 @@ Some common modules you might want to add:
```ruby
class ApplicationController < ActionController::API
include ::ActionController::Caching
self.cache_store = :mem_cached_store
self.cache_store = :mem_cache_store
end
```
Rails does *not* pass this configuration automatically.