Skip to content
Permalink
Browse files
Fix cache key
  • Loading branch information
rosylilly committed Oct 31, 2015
1 parent bef304f commit 239e7c75ec3f599d9379e403d83c1dd2e869fe9b
Showing with 1 addition and 1 deletion.
  1. +1 −1 5f/webapp/ruby/app.rb
@@ -92,7 +92,7 @@ def fetch_with_cache(conf, redis)
return fetch(conf) unless @cachable

params = (conf['params'] && conf['params'].dup) || {}
hash = Digest::MD5.hexdigest(sprintf(uri, *conf['keys']))
hash = Digest::MD5.hexdigest(uri + conf.to_s)

cached = redis.get("api/cache/#{hash}")

0 comments on commit 239e7c7

Please sign in to comment.