Skip to content

Commit

Permalink
properly expire HOST_UID
Browse files Browse the repository at this point in the history
  • Loading branch information
giosakti committed Nov 14, 2018
1 parent 0032a0e commit 21e7f11
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/models/host_machine.rb
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ def sysadmins
collect(&:user_id)
host_users = users.uniq
REDIS_CACHE.set("#{HOST_UID_PREFIX}:#{name}", host_users.to_json)
REDIS_CACHE.expire("#{HOST_UID_PREFIX}:#{name}", REDIS_KEY_EXPIRY)
end
host_users
end
Expand Down

0 comments on commit 21e7f11

Please sign in to comment.