diff --git a/app/models/host_machine.rb b/app/models/host_machine.rb index 891f7277..a5210726 100755 --- a/app/models/host_machine.rb +++ b/app/models/host_machine.rb @@ -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