Skip to content

Commit

Permalink
Fixing cache_key parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
winton committed Nov 10, 2011
1 parent 9d6762b commit d3fdbd7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/execache.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit d3fdbd7

Please sign in to comment.