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

Make spawning with memcache in rails 3.2.X work properly again - reset method on Rails.cache was not being defined #33

Merged
merged 1 commit into from
Nov 19, 2013

Conversation

kuahyeow
Copy link
Contributor

We were seeing the classic connection sharing problems with memcache as Rails.cache.reset was not being called.

It seems odd to check that the class has been autoloaded?
At least in rails 3.2 when this gem is loaded, ActiveSupport::Cache is not autoloaded yet,
hence the second condition is false. Remove that condition as it doesn't seem needed

…reset method on Rails.cache was not being defined.

We were seeing the classic connection sharing problems with memcache as Rails.cache.reset was not being called.

It seems odd to check that the class has been autoloaded?
  At least in rails 3.2 when this gem is loaded, ActiveSupport::Cache is not autoloaded yet,
  hence the second condition is false. Remove that condition as it doesn't seem needed
tra added a commit that referenced this pull request Nov 19, 2013
Make spawning with memcache in rails 3.2.X work properly again - reset method on Rails.cache was not being defined
@tra tra merged commit ad42bc7 into tra:master Nov 19, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants