[wp-trac] [WordPress Trac] #27736: Save one query when inserting a new post
WordPress Trac
noreply at wordpress.org
Sun Dec 7 21:59:43 UTC 2025
#27736: Save one query when inserting a new post
-------------------------------------+-------------------------------------
Reporter: ozh | Owner: pbearne
Type: enhancement | Status: assigned
Priority: normal | Milestone: Awaiting Review
Component: Posts, Post Types | Version: 3.0
Severity: normal | Resolution:
Keywords: has-patch has-unit- | Focuses: administration,
tests close | performance
-------------------------------------+-------------------------------------
Comment (by peterwilsoncc):
@pbearne Running `clean_post_cache()` before calling
`wp_set_post_categories()` shows a difference in the number of database
queries: six are made when the calling the latter with the post details
provided, nine are made without.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/27736#comment:11>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list