Skip to content
Browse files

Remove a bit of fail

  • Loading branch information...
1 parent 269cb46 commit acd2d389e728c3c09b88f2abc36c6718de395c20 @rixth rixth committed May 9, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/soulmate/matcher.rb
View
4 lib/soulmate/matcher.rb
@@ -14,12 +14,12 @@ def matches_for_term(term, options = {})
if !Soulmate.redis.exists(cachekey)
interkeys = words.map { |w| "#{base}:#{w}" }
-
+
interkeys += options[:filters].to_a.map do |filter|
value = filter.last.downcase.strip.gsub(/ /, '')
"#{base}:filters:#{filter.first}:#{value}"
end
- p interkeys
+
Soulmate.redis.zinterstore(cachekey, interkeys)
Soulmate.redis.expire(cachekey, 10 * 60) # expire after 10 minutes
end

0 comments on commit acd2d38

Please sign in to comment.
Something went wrong with that request. Please try again.