A platform for community discussion. Free, open, simple.
FIX: `redis.setex()` expects seconds parameter not DateTime (#36238)
Keegan Georgec1e322048d21
diff --git a/plugins/chat/app/models/concerns/chat/thread_cache.rb b/plugins/chat/app/models/concerns/chat/thread_cache.rbindex 97fbad5a4da..ee3735438eb 100644--- a/plugins/chat/app/models/concerns/chat/thread_cache.rb+++ b/plugins/chat/app/models/concerns/chat/thread_cache.rb@@ -59,7 +59,7 @@ module Chatdef set_replies_count_redis_cache(value)Discourse.redis.setex(Chat::Thread.replies_count_cache_redis_key(self.id),- 5.minutes.from_now.to_i,+ 5.minutes.to_i,value,)end