Created
April 16, 2010 00:13
-
-
Save tinco/367830 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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