-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes #849
- Loading branch information
Showing
1 changed file
with
1 addition
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5f99221
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What was happening here?
5f99221
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The message was rendered (say 6 mins after the post was created) and than I was caching the view so long as the message wasn't updated then the cached view would be served see https://guides.rubyonrails.org/caching_with_rails.html#fragment-caching
Sadly we've got a timestamp in there so the time ago in words was also cached. Ideally we'd render the time and use JS to update to convert that to time ago in words i.e. use https://github.com/hustcc/timeago.js but it looks like that doesn't have cz support yet