From 6b82f1047af354c2106e6ff4c27534aea1deea71 Mon Sep 17 00:00:00 2001 From: Sam Date: Fri, 28 Jun 2013 16:08:48 +1000 Subject: [PATCH] that date there is on purpose for date boundries --- app/models/user.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)