@@ -34,7 +34,7 @@ fragment caching. By default Rails provides fragment caching. In order to use
34
34
page and action caching you will need to add ` actionpack-page_caching ` and
35
35
` actionpack-action_caching ` to your ` Gemfile ` .
36
36
37
- By default, caching is only enabled in your production environment. You can play
37
+ By default, action controller caching is only enabled in your production environment. You can play
38
38
around with caching locally by running ` rails dev:cache ` , or by setting
39
39
[ ` config.action_controller.perform_caching ` ] [ ] to ` true ` in ` config/environments/development.rb ` .
40
40
@@ -720,10 +720,11 @@ response.strong_etag = response.body # => "618bbc92e2d35ea1945008b42799b0e7"
720
720
721
721
Caching in Development
722
722
----------------------
723
+ By default, caching is * enabled* in development mode with
724
+ [ ` :memory_store ` ] ( #activesupport-cache-memorystore ) .
723
725
724
- It's common to want to test the caching strategy of your application
725
- in development mode. Rails provides the rails command ` dev:cache ` to
726
- easily toggle caching on/off.
726
+ Rails also provides the rails command ` dev:cache ` to
727
+ easily toggle action controller caching on/off.
727
728
728
729
``` bash
729
730
$ bin/rails dev:cache
@@ -732,8 +733,7 @@ $ bin/rails dev:cache
732
733
Development mode is no longer being cached.
733
734
```
734
735
735
- By default, when development mode caching is * off* , Rails uses
736
- [ ` :null_store ` ] ( #activesupport-cache-nullstore ) .
736
+ To disable caching set ` cache_store ` to [ ` :null_store ` ] ( #activesupport-cache-nullstore )
737
737
738
738
References
739
739
----------
0 commit comments