FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Only store info for relevant standalone plugins in the transient cache by mukeshpanchal27 · Pull Request #1573 · WordPress/performance · GitHub

Only store info for relevant standalone plugins in the transient cache - #1573

Merged
mukeshpanchal27 merged 2 commits into
trunkfrom
fix/follow-up-1562
Oct 2, 2024
Merged

Only store info for relevant standalone plugins in the transient cache#1573
mukeshpanchal27 merged 2 commits into
trunkfrom
fix/follow-up-1562

Conversation

Copy link
Copy Markdown
Member

Follow-up on #1562

The current API query https://api.wordpress.org/plugins/info/1.2/?action=query_plugins&request[author]=wordpressdotorg&request[tag]=performance&request[per_page]=100 is returning some unrelated plugins like Plugin Check (PCP) and SQLite Database Integration. In the future, if anyone else uses Performance as a tag, it will also be added to our transient. However, we only need the standalone plugins defined in perflab_get_standalone_plugin_data().

I’ve also moved the array definition for $fields after the cache check, as it's redundant in the cached version.

mukeshpanchal27 added [Type] Enhancement A suggestion for improvement of an existing feature [Plugin] Performance Lab Issue relates to work in the Performance Lab Plugin only labels Oct 1, 2024
mukeshpanchal27 self-assigned this Oct 1, 2024
mukeshpanchal27 added no milestone PRs that do not have a defined milestone for release and removed no milestone PRs that do not have a defined milestone for release labels Oct 1, 2024
mukeshpanchal27 marked this pull request as ready for review October 1, 2024 11:48

github-actions Bot commented Oct 1, 2024
edited
Loading

Copy link
Copy Markdown

The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the props-bot label.

If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.

Co-authored-by: mukeshpanchal27 <mukesh27@git.wordpress.org>
Co-authored-by: swissspidy <swissspidy@git.wordpress.org>
Co-authored-by: adamsilverstein <adamsilverstein@git.wordpress.org>
Co-authored-by: felixarntz <flixos90@git.wordpress.org>

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.

adamsilverstein left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Nice!

felixarntz left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

@mukeshpanchal27 Great catch!

PR looks good, though one recommendation to improve performance.

mukeshpanchal27 merged commit 5952d55 into trunk Oct 2, 2024
mukeshpanchal27 deleted the fix/follow-up-1562 branch October 2, 2024 05:01
felixarntz changed the title Performance Lab: Query only required standalone plugins to get information Only store info for relevant standalone plugins in the transient cache Oct 2, 2024

Copy link
Copy Markdown
Member

FYI: We forgot to account for plugin dependencies here. Follow-up PR: #1613

This file contains hidden or 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[Plugin] Performance Lab Issue relates to work in the Performance Lab Plugin only [Type] Enhancement A suggestion for improvement of an existing feature

Projects

Status: Done 😃

Development

Successfully merging this pull request may close these issues.

5 participants


Back | FazBrowse Home | New Git URL