From bd3f453c0da0eb4fa12232cab7d324bf0ba89850 Mon Sep 17 00:00:00 2001 From: 2458773093 <2458773093@protonmail.com> Date: Mon, 22 Jul 2019 03:10:42 +0300 Subject: [PATCH] fix --- app/models/status.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/models/status.rb b/app/models/status.rb index ce467daf..b259d063 100644 --- a/app/models/status.rb +++ b/app/models/status.rb @@ -539,5 +539,6 @@ class Status < ApplicationRecord def increase_group_unread_counts GroupAccount.where(group_id: group_id).where.not(account_id: account_id).update_all("unread_count = unread_count + 1") + Rails.cache.delete("relationship:#{account_id}:group#{group_id}") end end