1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/guides/source
Sam Bostock e79364610c
Fallback to $MEMCACHE_SERVERS if no servers given
By default, Dalli has two fallbacks if no server addresses are given:

- $MEMCACHE_SERVERS
- "127.0.0.1:11211"

However, MemCacheStore does its own check for addresses, and falls back
to "localhost:11211" if none are present.

This can lead to bugs in migrations from the deprecated :dalli_store
(provided by the Dalli) to :mem_cache_store:

```diff
-config.cache_store = :dalli_store     # could be implicitly relying on $MEMCACHE_SERVERS
+config.cache_store = :mem_cache_store # ignores $MEMCACHE_SERVERS
```

By removing our own fallback and simply passing `nil` to Dalli::Client,
we get its fallback logic for free. Tests are added so we can detect if
this ever changes.
2020-10-20 23:50:52 -04:00
..
kindle
2_2_release_notes.md Use bash code fences and prompts for shell code [ci skip] 2020-06-13 19:27:30 -05:00
2_3_release_notes.md Use bash code fences and prompts for shell code [ci skip] 2020-06-13 19:27:30 -05:00
3_0_release_notes.md Update the Rails mailing list URLs to new discuss discourse URL [ci skip] 2020-04-02 22:00:28 +05:30
3_1_release_notes.md
3_2_release_notes.md Use appropriate code fences [ci skip] 2020-07-08 14:51:57 -05:00
4_0_release_notes.md Use bash code fences and prompts for shell code [ci skip] 2020-06-13 19:27:30 -05:00
4_1_release_notes.md Use bash code fences and prompts for shell code [ci skip] 2020-06-13 19:27:30 -05:00
4_2_release_notes.md [ci skip] Update link to autoloading guide to classic mode guide instead of Zeitwerk guide 2020-06-10 10:43:05 -05:00
5_0_release_notes.md
5_1_release_notes.md update from PR #36222 2020-02-12 13:31:43 -05:00
5_2_release_notes.md
6_0_release_notes.md
6_1_release_notes.md Revert "Remove deprecated ActionMailer::DeliveryJob and ActionMailer::Parameterized::DeliveryJob" 2020-05-12 15:20:07 -04:00
_license.html.erb
_welcome.html.erb
action_cable_overview.md Remove editorializing in ActionCable guide 2020-09-19 18:31:22 -07:00
action_controller_overview.md Merge pull request #39736 from mehagar/docs-cookie 2020-07-31 08:52:12 +05:30
action_mailbox_basics.md Use appropriate code fences [ci skip] 2020-07-08 14:51:57 -05:00
action_mailer_basics.md Pass over the "Calling the Mailer" AM guide [ci skip] (#39402) 2020-05-23 23:32:45 +05:30
action_text_overview.md Update action_text_overview.md 2020-10-09 11:23:06 -04:00
action_view_helpers.md Remove duplicate FormHelpers from ActionView Helpers guide [ci skip] 2020-10-05 19:02:51 +02:00
action_view_overview.md Wording in guides: Prefer environment over mode 2020-10-05 16:30:48 -07:00
active_job_basics.md fix grammar - ci skip 2020-03-28 19:38:01 -07:00
active_model_basics.md Use Rouge for guides code highlighting [ci skip] 2020-07-08 09:05:08 +02:00
active_record_basics.md Update Migration number to ensure consistency on the documentation [ci skip] 2020-01-25 15:12:33 -05:00
active_record_callbacks.md Add #delete_by into skipping callback methods [skip ci] 2020-08-24 00:26:58 +09:00
active_record_migrations.md Combine and deprecate rails db:structure:{dump,load} tasks into rails db:schema:{dump,load} 2020-08-03 19:08:41 +03:00
active_record_multiple_databases.md Make role required when using shard in connected_to 2020-09-17 08:07:03 -04:00
active_record_postgresql.md Add support for PostgreSQL interval datatype. 2020-09-30 14:54:55 -07:00
active_record_querying.md Update active_record_querying.md 2020-10-15 18:55:03 +05:00
active_record_validations.md Change belongs_to example to has_one [ci skip] 2020-08-31 13:21:52 -04:00
active_storage_overview.md Support per-environment ASt service config 2020-09-29 09:59:52 -04:00
active_support_core_extensions.md fix typos in active support docs 2020-07-17 11:25:35 -05:00
active_support_instrumentation.md Merge pull request #40371 from shouichi/document-transform-event 2020-10-18 19:52:18 +01:00
api_app.md Update GitHub gist api link and fix documentation in api_app page [ci skip] 2020-08-06 21:47:45 +05:30
api_documentation_guidelines.md Use bash code fences and prompts for shell code [ci skip] 2020-06-13 19:27:30 -05:00
asset_pipeline.md Fix small typos in the guides [skip ci] 2020-10-11 10:33:23 +02:00
association_basics.md Clarify exists? and find query only in the table 2020-09-02 22:07:36 -07:00
autoloading_and_reloading_constants.md edits in the constants guide [skip ci] 2020-10-09 20:18:45 +02:00
autoloading_and_reloading_constants_classic_mode.md Fix strange sentence in classic_mode guide [skip ci] 2020-09-03 11:55:19 +02:00
caching_with_rails.md Fallback to $MEMCACHE_SERVERS if no servers given 2020-10-20 23:50:52 -04:00
command_line.md Merge branch 'master' into combine-structure-and-schema-tasks 2020-08-17 08:47:51 -04:00
configuring.md Wording in guides: Prefer environment over mode 2020-10-05 16:30:48 -07:00
contributing_to_ruby_on_rails.md Add a note about PR approvals [ci skip] 2020-09-22 18:50:15 -04:00
debugging_rails_applications.md Formats code blocks for better syntax highlighting 2020-08-21 15:47:32 +05:30
development_dependencies_install.md Fix highlighting for mostly SQL block 2020-07-26 18:27:07 +02:00
documents.yaml change typo 6.0 to 6.1 in the documents.yml (#39664) [ci skip] 2020-06-19 06:19:29 +05:30
engines.md Document new Record Active Support hooks 2020-10-07 01:03:51 +00:00
form_helpers.md Merge pull request #40377 from jonathanhefner/guide-form_helpers-_tag-helpers 2020-10-13 11:53:21 -05:00
generators.md Formats code blocks for better syntax highlighting 2020-08-21 15:47:32 +05:30
getting_started.md Wording in guides: Prefer environment over mode 2020-10-05 16:30:48 -07:00
i18n.md fix minor typos 2020-07-22 08:01:10 -05:00
index.html.erb
initialization.md update global rails commands to bundled rails i.e. bin/rails 2020-04-11 17:32:26 +01:00
layout.html.erb Add copy button for copying guide code examples [skip ci] 2020-10-01 16:32:43 +02:00
layouts_and_rendering.md Include layout when rendering objects from controllers 2020-10-14 11:49:45 -06:00
maintenance_policy.md Clarify subheadline of maintenance policy 2020-05-20 00:02:04 +02:00
plugins.md fix markdown syntax error 2020-08-14 14:01:55 -05:00
rails_application_templates.md Use bash code fences and prompts for shell code [ci skip] 2020-06-13 19:27:30 -05:00
rails_on_rack.md [ci skip] Add ActionDispatch::ActionableExceptions to default middleware docs 2020-05-20 13:55:13 -04:00
routing.md Additional explanation to overriding resource routes 2020-10-03 11:44:16 -04:00
ruby_on_rails_guides_guidelines.md Remove references to WARNINGS environment variable [ci skip] 2020-07-05 16:40:52 +01:00
security.md Formats code blocks for better syntax highlighting 2020-08-21 15:47:32 +05:30
testing.md epsilon invert 2020-08-14 17:06:21 -05:00
threading_and_code_execution.md Fix minor formatting issue 2020-08-21 05:28:38 +05:30
upgrading_ruby_on_rails.md Wording in guides: Prefer environment over mode 2020-10-05 16:30:48 -07:00
working_with_javascript_in_rails.md Avoid implying that #results selector will only match a div element 2020-02-21 10:10:34 -08:00