Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed memcache contamination. #814

Merged
merged 1 commit into from
Dec 20, 2016
Merged

Conversation

danepowell
Copy link
Contributor

We noticed odd behavior on our dev/stage sites (which share the same hardware) where cache keys were very clearly being shared between sites. For instance, we deployed a module to dev, and then got routing errors on stage indicating that Drupal was looking for that module.

My theory is that the memcache module is not properly prefixing keys per host. It appears that the ACE server-side includes do configure these keys correctly, and the memcache store uses them correctly about 99% of the time. But if the key is too long, the memcache module hashes it and I think this is the case where the hostname is ignored and caches can become contaminated across multiple sites on the same server.

This is fixed upstream here, so updating to dev should fix it: https://www.drupal.org/node/2701903

I also requested a new alpha release, so we can get back off of dev ASAP: https://www.drupal.org/node/2837857

@@ -15,7 +15,7 @@
"drupal/cog": "^1.0.0",
"drupal/core": "^8.0",
"drupal/features": "^3.0.0",
"drupal/memcache": "^2.0.0-alpha2",
"drupal/memcache": "2.x-dev",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please specify a hash since this has a patch applied against it.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm I don't think there's a patch against it but I can still lock it to a hash tomorrow.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh I see. I noticed that a patch had changed in this PR and assumed it was for memcache. Looks like it's actually just a whitespace change.

@grasmash grasmash merged commit a918860 into acquia:8.x Dec 20, 2016
@grasmash grasmash added Enhancement A feature or feature request and removed in progress labels Dec 20, 2016
@danepowell danepowell deleted the feature/memcache-fix branch December 6, 2017 00:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement A feature or feature request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants