diff options
author | Vipul A M <vipulnsward@gmail.com> | 2016-02-01 01:56:43 +0530 |
---|---|---|
committer | Vipul A M <vipulnsward@gmail.com> | 2016-02-01 01:56:43 +0530 |
commit | acddd032d06fbfbb9f2bbdcc1a176b5bea35d5a3 (patch) | |
tree | b98b8704b9ced8160b9cc534fa19970e19f34201 /guides/source/rails_on_rack.md | |
parent | 81052c8cd908a0626a7ef77bb5c3dc89898b3626 (diff) | |
parent | 6cdc36a026ef4a4c66c1c8dfcf319b99993322d3 (diff) | |
download | rails-acddd032d06fbfbb9f2bbdcc1a176b5bea35d5a3.tar.gz rails-acddd032d06fbfbb9f2bbdcc1a176b5bea35d5a3.tar.bz2 rails-acddd032d06fbfbb9f2bbdcc1a176b5bea35d5a3.zip |
Merge pull request #22857 from bdewater/interlock-doc
Update middleware docs regarding ActionDispatch::LoadInterlock [ci skip]
Diffstat (limited to 'guides/source/rails_on_rack.md')
-rw-r--r-- | guides/source/rails_on_rack.md | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/guides/source/rails_on_rack.md b/guides/source/rails_on_rack.md index 934693252e..3b61d65df5 100644 --- a/guides/source/rails_on_rack.md +++ b/guides/source/rails_on_rack.md @@ -104,7 +104,7 @@ For a freshly generated Rails application, this might produce something like: ```ruby use Rack::Sendfile use ActionDispatch::Static -use Rack::Lock +use ActionDispatch::LoadInterlock use #<ActiveSupport::Cache::Strategy::LocalCache::Middleware:0x000000029a0838> use Rack::Runtime use Rack::MethodOverride @@ -171,10 +171,10 @@ Add the following lines to your application configuration: ```ruby # config/application.rb -config.middleware.delete Rack::Lock +config.middleware.delete Rack::Runtime ``` -And now if you inspect the middleware stack, you'll find that `Rack::Lock` is +And now if you inspect the middleware stack, you'll find that `Rack::Runtime` is not a part of it. ```bash @@ -219,6 +219,10 @@ Much of Action Controller's functionality is implemented as Middlewares. The fol * Sets `env["rack.multithread"]` flag to `false` and wraps the application within a Mutex. +**`ActionDispatch::LoadInterlock`** + +* Used for thread safe code reloading during development. + **`ActiveSupport::Cache::Strategy::LocalCache::Middleware`** * Used for memory caching. This cache is not thread safe. |