Skip to content

Commit

Permalink
Merge pull request #25 from unipartdigital/story/3539
Browse files Browse the repository at this point in the history
[FIX]: addons/mail: remove unnecessary cache invalidations
  • Loading branch information
ws-mps committed Apr 4, 2019
2 parents d8192b1 + afe99f8 commit 1effab8
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
5 changes: 0 additions & 5 deletions addons/mail/models/mail_message.py
Original file line number Diff line number Diff line change
Expand Up @@ -876,9 +876,4 @@ def _notify(self, force_send=False, send_after_commit=True, user_signature=True)

channels_sudo._notify(self)

# Discard cache, because child / parent allow reading and therefore
# change access rights.
if self.parent_id:
self.parent_id.invalidate_cache()

return True
1 change: 0 additions & 1 deletion addons/mail/models/mail_thread.py
Original file line number Diff line number Diff line change
Expand Up @@ -2027,7 +2027,6 @@ def message_subscribe(self, partner_ids=None, channel_ids=None, subtype_ids=None
for record in self.filtered(lambda self: self.id in part):
record.write({'message_follower_ids': part[record.id]})

self.invalidate_cache()
return True

@api.multi
Expand Down

0 comments on commit 1effab8

Please sign in to comment.