Commit 844094b
authored
[rails] Delete remaining unused middleware (#9259)
The following middleware is unused for the benchmark:
- Callbacks
- Rack::TempfileReaper
The following middleware is already disabled in production by default,
so they don't need to be deleted:
- ActionDispatch::HostAuthorization
- ActionDispatch::Static
The remaining middleware are:
- ActiveSupport::Cache::Strategy::LocalCache::Middleware
- Hello::Application.routes
Also sort the middleware.
The middleware can be checked using the following command:
SECRET_KEY_BASE_DUMMY=1 RAILS_ENV=production_mysql bin/rails middleware1 parent 715f711 commit 844094b
File tree
2 files changed
+17
-17
lines changed- frameworks/Ruby/rails/config
- environments
2 files changed
+17
-17
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
34 | | - | |
35 | | - | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
36 | 37 | | |
37 | | - | |
38 | | - | |
39 | | - | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
40 | 41 | | |
41 | | - | |
| 42 | + | |
| 43 | + | |
42 | 44 | | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | 45 | | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | 46 | | |
54 | 47 | | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
55 | 54 | | |
56 | 55 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
| 25 | + | |
25 | 26 | | |
26 | 27 | | |
27 | 28 | | |
| |||
0 commit comments