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

Widget Posts: Do batch up-front widget_instance post retrieval #20

Open
westonruter opened this issue May 28, 2015 · 0 comments
Open

Widget Posts: Do batch up-front widget_instance post retrieval #20

westonruter opened this issue May 28, 2015 · 0 comments

Comments

@westonruter
Copy link
Contributor

Consider doing batch widget_instance post retrieval via a post__in. This should be done when the Customizer is going to get all registered widget settings, and it should be done for all widget IDs in wp_get_sidebar_widgets(). This is less of a concern when an external object cache is used, since in that case each widget will only get a DB call when first loading the page (e.g. SELECT * FROM wp_posts WHERE ID = 1999 LIMIT 1).

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

No branches or pull requests

1 participant