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

Performance improvement: cache version listing on the homepage #4526

Merged
merged 7 commits into from
Aug 15, 2018

Conversation

ericholscher
Copy link
Member

@ericholscher ericholscher commented Aug 15, 2018

This is similar to #4524,
where resolving a ton of URL's for versions is time consuming.
This caches the features projects list on the homepage.

This is similar to #4524,
where resolving a ton of URL's for versions is time consuming.
This limits that by only listing the stable version,
 if it exists,
for featured projects on our homepage
@ericholscher ericholscher changed the title Performance improvement: stop listing all versions on the homepage Performance improvement: cache version listing on the homepage Aug 15, 2018
@ericholscher ericholscher requested review from davidfischer and a team and removed request for davidfischer August 15, 2018 19:13
@ericholscher
Copy link
Member Author

Outcome in testing on one of our web servers:

screenshot 2018-08-15 21 21 56

That is 1500ms to 100ms.

Copy link
Contributor

@agjohnson agjohnson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm surprised we haven't done this yet. 👍

@@ -116,6 +116,7 @@ <h3>Multiple versions</h3>
</section>

{% if featured_list %}
{% cache 600 homepage %}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The identifier should probably be more specific, ie: homepage_featured_list

Copy link
Contributor

@davidfischer davidfischer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me! We could use something similar to get the number of projects as well but if this takes care of it, no worries.

@ericholscher ericholscher merged commit 83da8d3 into master Aug 15, 2018
@stsewd stsewd deleted the hide-project-versions branch August 15, 2018 20:55
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.

4 participants