[wp-trac] [WordPress Trac] #46388: WP_User::get_data_by(): Cache non-existent users to prevent triggering multiple queries

WordPress Trac noreply at wordpress.org
Tue Jun 15 08:39:55 UTC 2021


#46388: WP_User::get_data_by(): Cache non-existent users to prevent triggering
multiple queries
-----------------------------------------+------------------------------
 Reporter:  Asgaros                      |       Owner:  (none)
     Type:  enhancement                  |      Status:  new
 Priority:  normal                       |   Milestone:  Awaiting Review
Component:  Cache API                    |     Version:  5.2
 Severity:  normal                       |  Resolution:
 Keywords:  has-patch reporter-feedback  |     Focuses:  performance
-----------------------------------------+------------------------------
Changes (by andraganescu):

 * keywords:  has-patch => has-patch reporter-feedback


Comment:

 Can we find ourselves in a situation where the ID is *created* after it's
 cached as non existent? If yes that operation should invalidate the cache.

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


More information about the wp-trac mailing list