docbrown/app/views/notifications
rhymes 50cdfb0a96 Do not cache articles notification time indication (#4122)
Fragment caching does not support an explicit expiration date for simplicitly, which means that cached resources are tied to the update datetime of the model.

In this case unfortunately this is not sufficient: a cached time that potentially never gets expired can stale quickly when applied to a time sensitive item like a notification.

Since the "time ago" computation is not particularly heavy and notifications are paginated, I ended up removing that part from the cache altogether.

As a byproduct I created two new separate cache keys for the article notification, one of each section surrounding the time.
2019-09-29 11:39:03 -04:00
..
shared Improve mod roundrobin notification and internal tooling (#3855) 2019-08-27 21:54:09 -04:00
_aggregated_reactions.html.erb Escape HTML in the notifications view (#3243) 2019-07-30 14:24:23 -04:00
_article.html.erb Do not cache articles notification time indication (#4122) 2019-09-29 11:39:03 -04:00
_badgeachievement.html.erb Adjust internal page logic and add credits copy to notifications (#3843) 2019-08-26 13:41:13 -04:00
_broadcast.html.erb Allow for the sending of arbitrary broadcasts (#3569) 2019-07-29 17:10:49 -04:00
_comment.html.erb Paginate notifications (#3948) 2019-09-07 11:54:30 -04:00
_follow.html.erb Fix linting issues in app/views/notifications (#1894) [ci skip] 2019-02-25 16:58:47 -05:00
_mention.html.erb Use server side comments for templates (#4123) 2019-09-27 10:10:30 -04:00
_milestone.html.erb Escape HTML in the notifications view (#3243) 2019-07-30 14:24:23 -04:00
_notifications_list.html.erb Notifications: increase efficiency and fix pagination offset issue (#3986) 2019-09-10 09:43:45 -04:00
_reaction.html.erb Add alternative texts to images (#2771) [ci skip] 2019-05-09 11:16:03 -04:00
_tagadjustment.html.erb Escape HTML in the notifications view (#3243) 2019-07-30 14:24:23 -04:00
index.html.erb Notifications: increase efficiency and fix pagination offset issue (#3986) 2019-09-10 09:43:45 -04:00