Permalink
Browse files

Fixing cache_key parameter

  • Loading branch information...
1 parent 9d6762b commit d3fdbd737ac7b7c3e1b1e780dba56e239a03dd6b @winton committed Nov 10, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/execache.rb
View
@@ -42,8 +42,8 @@ def initialize(yaml)
# Fill results with caches if present
cmd_options['groups'].each do |group|
- cache_key = group['cache_key'] || Digest::SHA1.hexdigest(
- "#{cmd_options['args']} #{group['args']}"
+ cache_key = Digest::SHA1.hexdigest(
+ "#{group['cache_key'] || cmd_options['args']} #{group['args']}"
)
group['cache_key'] = cache_key = "execache:cache:#{cache_key}"
cache = redis.get(cache_key)

0 comments on commit d3fdbd7

Please sign in to comment.