Skip to content

Instantly share code, notes, and snippets.

@tinco
Created April 16, 2010 00:13
Show Gist options
  • Save tinco/367830 to your computer and use it in GitHub Desktop.
Save tinco/367830 to your computer and use it in GitHub Desktop.
diff --git a/vendor/gems/cache-money-0.2.5/lib/cash/query/abstract.rb b/vendor/gems/cache-money-0.2.5/lib/cash/query/abstract.rb
index 48a3476..9715a32 100644
--- a/vendor/gems/cache-money-0.2.5/lib/cash/query/abstract.rb
+++ b/vendor/gems/cache-money-0.2.5/lib/cash/query/abstract.rb
@@ -70,7 +70,8 @@ module Cash
end
def cache_keys(attribute_value_pairs)
- attribute_value_pairs.flatten.join('/')
+ #This is a hack to allow for extremely long queries:
+ attribute_value_pairs.hash #flatten.join('/')
end
def safe_options_for_cache?(options)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment