Disable post meta/term cache updating for wp_global_styles#3655
Disable post meta/term cache updating for wp_global_styles#3655ocean90 wants to merge 1 commit intoWordPress:trunkfrom
Conversation
|
@ocean90 Can you confirm that this does remove queries. Post meta is loaded. As this post is converted to an array, that loads post meta. |
|
@spacedmonkey I haven't verified it on a clean install but I got one less term query on a client site. Will check again later, this was just for verifying if there are failing tests. Though, it makes no sense to convert the post to an array. 😞 Only |
I agree. How about manually converting this to an array. So This is a private method, so it is a little easier to change. |
|
@ocean90 This code is from gutenberg, it might be better to do this work in the gutenberg repo and it will be backported. |
Thanks, created WordPress/gutenberg#45978 as a starting point. |
|
I have my own PR here - WordPress/gutenberg#46043 |

Neither post metas nor terms are used so this can be disabled to reduce the queries by one.
Trac ticket:
This Pull Request is for code review only. Please keep all other discussion in the Trac ticket. Do not merge this Pull Request. See GitHub Pull Requests for Code Review in the Core Handbook for more details.