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

Provide a way to load multiple specific options with a single database request #1174

Open
shabnam611 opened this issue Oct 12, 2023 · 7 comments
Labels
6.4 Changes in 6.4 release [Status] To do Issue marked as Todo
Milestone

Comments

@shabnam611
Copy link
Collaborator

Trac ticket: https://core.trac.wordpress.org/ticket/58962

Keyword: needs-dev-note
Ticket owner: flixos90
Core committer: mukesh27

@github-actions
Copy link

Heads up @WordPress/docs-issues-coordinators, we have a new issue open. Time to use 'em labels.

@shabnam611 shabnam611 added the 6.4 Changes in 6.4 release label Oct 12, 2023
@shabnam611 shabnam611 added this to the 6.4 milestone Oct 12, 2023
@codente
Copy link

codente commented Oct 15, 2023

This will be included in dev note "Optimizing autoloaded options dev note" by Performance Team
WordPress/performance#840

@felixarntz
Copy link
Member

Dev note draft for this and a few other related tickets ready for review: https://docs.google.com/document/d/18ADBnA115cjmFb60yyKAYWdYxSHojqbZF-vNUT1teV4/edit

This covers:

  • 58962
  • 58964
  • 51352

See the performance team's dev note issue for a better overview: WordPress/performance#840

@zzap zzap added the [Status] To do Issue marked as Todo label Oct 17, 2023
@codente
Copy link

codente commented Oct 17, 2023

@felixarntz I've reviewed that. Nice work! The examples should definitely be helpful to devs. Would this be beneficial in the field guide?

@felixarntz
Copy link
Member

Dev note published: https://make.wordpress.org/core/2023/10/17/new-option-functions-in-6-4/

I think it would be good to highlight in the field guide something like:

New functions prime_options(), get_options(), and wp_set_option_autoload_values() allow enhancing performance of retrieving options from the database.

(with a link to the full dev note)

@codente
Copy link

codente commented Oct 18, 2023

Thank you @felixarntz!

@abhansnuk I added this to the field guide draft under Options, Meta APIs since that is the component but I'm not sure if that is correct?

@felixarntz
Copy link
Member

@codente Thank you, that is correct.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
6.4 Changes in 6.4 release [Status] To do Issue marked as Todo
Projects
Status: Done
Development

No branches or pull requests

4 participants