Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cache featured collections, as well as outbox, followers and following #10467

Merged
merged 1 commit into from
Apr 3, 2019

Conversation

ClearlyClaire
Copy link
Contributor

No description provided.

@ClearlyClaire ClearlyClaire marked this pull request as ready for review April 3, 2019 16:58
@ClearlyClaire
Copy link
Contributor Author

When a status is suddenly boosted or replied out of the usual audience of an account, many instances may try to resolve that account at the same time, fetching various collections (outbox, followers, following, featuring). While the first ones are usually just a “wrapper” with just the number of items and a link to the first page, and are thus rather cheap, it doesn't hurt to let the reverse-proxy handle them. The featured collection is potentially more expensive, caching it both on the reverse-proxy and at the Rails level makes sense.

@Gargron Gargron merged commit cc6e3c3 into mastodon:master Apr 3, 2019
hiyuki2578 pushed a commit to ProjectMyosotis/mastodon that referenced this pull request Oct 2, 2019
messenjahofchrist pushed a commit to Origin-Creative/mastodon that referenced this pull request Jul 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants