[wp-trac] [WordPress Trac] #55958: Checking if _admin_notice_post_locked should be called can slow down the post editing

WordPress Trac noreply at wordpress.org
Mon Dec 16 23:49:27 UTC 2024


#55958: Checking if _admin_notice_post_locked should be called can slow down the
post editing
------------------------------+-----------------------------
 Reporter:  berislav.grgicak  |       Owner:  SergeyBiryukov
     Type:  enhancement       |      Status:  reviewing
 Priority:  normal            |   Milestone:  6.8
Component:  Editor            |     Version:  4.9
 Severity:  normal            |  Resolution:
 Keywords:  has-patch         |     Focuses:  performance
------------------------------+-----------------------------

Comment (by SergeyBiryukov):

 In [changeset:"59522" 59522]:
 {{{
 #!CommitTicketReference repository="" revision="59522"
 Editor: Check `get_user_count()` instead of `get_users()` for the locked
 post notice.

 This aims to avoid slowing down the post editing by using a cached value
 instead of calling `get_users()`, which can be slow when plugins add
 various filters to all `get_users()` calls, especially with meta value
 comparisons on large `user_meta` tables.

 Follow-up to [24304], [24543], [41829], [53011], [53018].

 Props berislav.grgicak, bor0, costdev.
 See #55958.
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/55958#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list