Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Add caching to the wordpress.org query to get plugin information.#1022

Merged
felixarntz merged 1 commit into
trunkWordPress/performance:trunkfrom
add/cache-plugin_api-callsWordPress/performance:add/cache-plugin_api-callsCopy head branch name to clipboard
Mar 4, 2024
Merged

Add caching to the wordpress.org query to get plugin information.#1022
felixarntz merged 1 commit into
trunkWordPress/performance:trunkfrom
add/cache-plugin_api-callsWordPress/performance:add/cache-plugin_api-callsCopy head branch name to clipboard

Conversation

@thelovekesh

Copy link
Copy Markdown
Member

Summary

Fixes #1015

Relevant technical choices

Checklist

  • PR has either [Focus] or Infrastructure label.
  • PR has a [Type] label.
  • PR has a milestone or the no milestone label.

@thelovekesh thelovekesh added [Type] Enhancement A suggestion for improvement of an existing feature Infrastructure Issues for the overall performance plugin infrastructure no milestone PRs that do not have a defined milestone for release labels Mar 1, 2024
@thelovekesh
thelovekesh requested a review from westonruter March 1, 2024 19:45
@github-actions

github-actions Bot commented Mar 1, 2024

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: thelovekesh <thelovekesh@git.wordpress.org>
Co-authored-by: westonruter <westonruter@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.

Comment thread admin/plugins.php
$plugin = (array) $plugin;
}

set_transient( 'perflab_plugin_info_' . $plugin_slug, $plugin, HOUR_IN_SECONDS );

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.

The TTL could probably be higher but I don't feel strongly about it.

@westonruter westonruter 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.

LGTM

@felixarntz 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.

Good catch @thelovekesh! LGTM.

@felixarntz felixarntz added this to the PL Plugin 3.0.0 milestone Mar 4, 2024
@felixarntz felixarntz removed the no milestone PRs that do not have a defined milestone for release label Mar 4, 2024
@felixarntz felixarntz changed the title Add caching on WPOrg plugins query Add caching to the wordpress.org query to get plugin information. Mar 4, 2024
@felixarntz
felixarntz merged commit 8c718b5 into trunk Mar 4, 2024
@felixarntz
felixarntz deleted the add/cache-plugin_api-calls branch March 4, 2024 18:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Infrastructure Issues for the overall performance plugin infrastructure [Type] Enhancement A suggestion for improvement of an existing feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

PL admin performance can be improved

3 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.