The ActiveRecord::ConnectionAdapters::ConnectionManagement
and ActiveRecord::QueryCache
middlewares were removed with Executor
addition on d3c9d808e3e242155a44fd2a89ef272cfade8fe8
Removes traces and reference of these from all places. [ci skip]
This commit is contained in:
parent
8a00a8c8e1
commit
80b23fedfb
@ -433,7 +433,7 @@ Ruby version 2.2.2 (x86_64-linux)
|
|||||||
RubyGems version 2.4.6
|
RubyGems version 2.4.6
|
||||||
Rack version 1.6
|
Rack version 1.6
|
||||||
JavaScript Runtime Node.js (V8)
|
JavaScript Runtime Node.js (V8)
|
||||||
Middleware Rack::Sendfile, ActionDispatch::Static, ActionDispatch::Executor, #<ActiveSupport::Cache::Strategy::LocalCache::Middleware:0x007ffd131a7c88>, Rack::Runtime, Rack::MethodOverride, ActionDispatch::RequestId, Rails::Rack::Logger, ActionDispatch::ShowExceptions, ActionDispatch::DebugExceptions, ActionDispatch::RemoteIp, ActionDispatch::Reloader, ActionDispatch::Callbacks, ActiveRecord::Migration::CheckPending, ActiveRecord::ConnectionAdapters::ConnectionManagement, ActiveRecord::QueryCache, ActionDispatch::Cookies, ActionDispatch::Session::CookieStore, ActionDispatch::Flash, Rack::Head, Rack::ConditionalGet, Rack::ETag
|
Middleware Rack::Sendfile, ActionDispatch::Static, ActionDispatch::Executor, #<ActiveSupport::Cache::Strategy::LocalCache::Middleware:0x007ffd131a7c88>, Rack::Runtime, Rack::MethodOverride, ActionDispatch::RequestId, Rails::Rack::Logger, ActionDispatch::ShowExceptions, ActionDispatch::DebugExceptions, ActionDispatch::RemoteIp, ActionDispatch::Reloader, ActionDispatch::Callbacks, ActiveRecord::Migration::CheckPending, ActionDispatch::Cookies, ActionDispatch::Session::CookieStore, ActionDispatch::Flash, Rack::Head, Rack::ConditionalGet, Rack::ETag
|
||||||
Application root /home/foobar/commandsapp
|
Application root /home/foobar/commandsapp
|
||||||
Environment development
|
Environment development
|
||||||
Database adapter sqlite3
|
Database adapter sqlite3
|
||||||
|
@ -224,8 +224,6 @@ Every Rails application comes with a standard set of middleware which it uses in
|
|||||||
* `ActionDispatch::RemoteIp` checks for IP spoofing attacks and gets valid `client_ip` from request headers. Configurable with the `config.action_dispatch.ip_spoofing_check`, and `config.action_dispatch.trusted_proxies` options.
|
* `ActionDispatch::RemoteIp` checks for IP spoofing attacks and gets valid `client_ip` from request headers. Configurable with the `config.action_dispatch.ip_spoofing_check`, and `config.action_dispatch.trusted_proxies` options.
|
||||||
* `Rack::Sendfile` intercepts responses whose body is being served from a file and replaces it with a server specific X-Sendfile header. Configurable with `config.action_dispatch.x_sendfile_header`.
|
* `Rack::Sendfile` intercepts responses whose body is being served from a file and replaces it with a server specific X-Sendfile header. Configurable with `config.action_dispatch.x_sendfile_header`.
|
||||||
* `ActionDispatch::Callbacks` runs the prepare callbacks before serving the request.
|
* `ActionDispatch::Callbacks` runs the prepare callbacks before serving the request.
|
||||||
* `ActiveRecord::ConnectionAdapters::ConnectionManagement` cleans active connections after each request, unless the `rack.test` key in the request environment is set to `true`.
|
|
||||||
* `ActiveRecord::QueryCache` caches all SELECT queries generated in a request. If any INSERT or UPDATE takes place then the cache is cleaned.
|
|
||||||
* `ActionDispatch::Cookies` sets cookies for the request.
|
* `ActionDispatch::Cookies` sets cookies for the request.
|
||||||
* `ActionDispatch::Session::CookieStore` is responsible for storing the session in cookies. An alternate middleware can be used for this by changing the `config.action_controller.session_store` to an alternate value. Additionally, options passed to this can be configured by using `config.action_controller.session_options`.
|
* `ActionDispatch::Session::CookieStore` is responsible for storing the session in cookies. An alternate middleware can be used for this by changing the `config.action_controller.session_store` to an alternate value. Additionally, options passed to this can be configured by using `config.action_controller.session_options`.
|
||||||
* `ActionDispatch::Flash` sets up the `flash` keys. Only available if `config.action_controller.session_store` is set to a value.
|
* `ActionDispatch::Flash` sets up the `flash` keys. Only available if `config.action_controller.session_store` is set to a value.
|
||||||
|
@ -149,9 +149,9 @@ You can add a new middleware to the middleware stack using any of the following
|
|||||||
# Push Rack::BounceFavicon at the bottom
|
# Push Rack::BounceFavicon at the bottom
|
||||||
config.middleware.use Rack::BounceFavicon
|
config.middleware.use Rack::BounceFavicon
|
||||||
|
|
||||||
# Add Lifo::Cache after ActiveRecord::QueryCache.
|
# Add Lifo::Cache after ActionDispatch::Executor.
|
||||||
# Pass { page_cache: false } argument to Lifo::Cache.
|
# Pass { page_cache: false } argument to Lifo::Cache.
|
||||||
config.middleware.insert_after ActiveRecord::QueryCache, Lifo::Cache, page_cache: false
|
config.middleware.insert_after ActionDispatch::Executor, Lifo::Cache, page_cache: false
|
||||||
```
|
```
|
||||||
|
|
||||||
#### Swapping a Middleware
|
#### Swapping a Middleware
|
||||||
@ -267,14 +267,6 @@ Much of Action Controller's functionality is implemented as Middlewares. The fol
|
|||||||
|
|
||||||
* Checks pending migrations and raises `ActiveRecord::PendingMigrationError` if any migrations are pending.
|
* Checks pending migrations and raises `ActiveRecord::PendingMigrationError` if any migrations are pending.
|
||||||
|
|
||||||
**`ActiveRecord::ConnectionAdapters::ConnectionManagement`**
|
|
||||||
|
|
||||||
* Cleans active connections after each request, unless the `rack.test` key in the request environment is set to `true`.
|
|
||||||
|
|
||||||
**`ActiveRecord::QueryCache`**
|
|
||||||
|
|
||||||
* Enables the Active Record query cache.
|
|
||||||
|
|
||||||
**`ActionDispatch::Cookies`**
|
**`ActionDispatch::Cookies`**
|
||||||
|
|
||||||
* Sets cookies for the request.
|
* Sets cookies for the request.
|
||||||
|
Loading…
Reference in New Issue
Block a user