-
Notifications
You must be signed in to change notification settings - Fork 29
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: back-end #44
Comments
WordPress trunk has webp support See #42
This seems good, except for some stemming from I believe that's why this filter ended up in all of the Page Templates: https://meta.trac.wordpress.org/browser/sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-main/page-download.php?marks=64-67#L63 There's some duplicate queries from
This seems fine too. |
What about CDN use for images and other assets? I mention it here because the solution might be some back-end filtering of URLs. Or Photon. |
wporg-main and various other themes use a How do you think we should handle media files? |
Oh, I see Dion is way ahead of me: WordPress/wporg-mu-plugins#173 |
Handling media files probably needs some work to make work well. To CDN them we'd need to have the site its' for in the URL path. Ideally, we'd probably rewrite media urls to a specific cdn domain, something like: The other option, would be something like.. |
Let's do two things, one now and one later. An immediate solution for launch
A sustainable ongoing solution
Does that sound reasonable? Any better immediate solutions? |
Due to how WordPress handles srcset, which we've currently got on the background images, as part of committing the image assets we'd loose that functionality. These minimal assets will be cached heavily by the load balancers I expect, so we might not need to move these to the CDN as a matter of urgency (although it would help with performance) |
Got it. Ok, in that case let's forget about the sooner part and make a plan for the ongoing solution. |
On DB queries: I noticed on the staging site that some pageviews have Cavalcade queries. Is that specific to the staging site or would it happen on the live site too? Can/should we bypass that on front page views? |
This is a shortcoming of Cavalcade and the WP Cron system, while these queries are cached, the cache is short lived and difficult to cache for significant time without side effects. By disabling those queries, we'd have further queries being made to insert cron entries, or, updating options. We could filter Context: The cavalcade queries are triggered by edit: Turns out on WordPress.org I added a 10s cache to these, |
Moving this out of the launch board, if anything still needs to be tweaked we can do that after launch. |
I think this can be closed for now, though we should follow up server-side performance in depth later. |
What back-end performance issues, current or potential, do we need to consider improving?
Server response time is the top issue raised by Lighthouse when running locally. Obviously that's affected by Docker speed. Are there any server-side issues in staging or likely in prod?
The text was updated successfully, but these errors were encountered: