]> cat aescling's git repositories - mastodon.git/commit
Reset status cache when status_stat or media_attachment updates (#9119)
authorEugen Rochko <eugen@zeonfederated.com>
Sun, 28 Oct 2018 05:42:34 +0000 (06:42 +0100)
committerGitHub <noreply@github.com>
Sun, 28 Oct 2018 05:42:34 +0000 (06:42 +0100)
commit11b3ee4f4c1ede03f31dff4048283480ee22dd5f
tree7e69fcc5516c20a9a6258eae3b1f763414a9c024
parent93a1ab9030a358348addd55d5e18caaaec2d3a37
Reset status cache when status_stat or media_attachment updates (#9119)

* Reset status cache when status_stat or media_attachment updates

Fix #8711

Media attachments are generally immutable, but admins can update
the sensitive flag, and this would ensure the change is visible
instantly. Same for updates to status stats. That is a regression
from #8185, because even the correct updated_at fetched from a join
doesn't seem to invalidate the cache.

* Remove join from Status#cache_ids since it has no effect
app/models/media_attachment.rb
app/models/status.rb
app/models/status_stat.rb