Commit Graph

5 Commits (fixes/per-user-authorized-fetch)

Author SHA1 Message Date
Claire e4f5114aaf
Fix obsolete cache key in status cache invalidation logic () 2023-09-15 19:52:28 +02:00
Nick Schonning 717683d1c3
Autofix Rubocop remaining Layout rules () 2023-02-20 06:58:28 +01:00
Eugen Rochko 3e0e7a1cfb
Fix follower and other counters being able to go negative () 2022-05-26 20:32:48 +02:00
Eugen Rochko 11b3ee4f4c
Reset status cache when status_stat or media_attachment updates ()
* Reset status cache when status_stat or media_attachment updates

Fix 

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 , 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
2018-10-28 06:42:34 +01:00
Eugen Rochko 8e111b753a
Move status counters to separate table, count replies ()
* Move status counters to separate table, count replies

* Migration to remove old counter columns from statuses table

* Fix schema file
2018-08-14 19:19:32 +02:00