diff --git a/app/models/user.rb b/app/models/user.rb index 82651e6a4ab..5e313e0c260 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -287,7 +287,7 @@ class User < ActiveRecord::Base now_date = now.to_date # Only update last seen once every minute - redis_key = "user:#{self.id}:last_seen" + redis_key = "user:#{self.id}:#{now_date}" if $redis.setnx(redis_key, "1") $redis.expire(redis_key, SiteSetting.active_user_rate_limit_secs)