[wp-trac] [WordPress Trac] #54574: Add wp_cache_*_multiple function

WordPress Trac noreply at wordpress.org
Tue Jan 25 16:23:00 UTC 2022


#54574: Add wp_cache_*_multiple function
--------------------------+------------------------------
 Reporter:  spacedmonkey  |       Owner:  (none)
     Type:  enhancement   |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Cache API     |     Version:
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |     Focuses:  performance
--------------------------+------------------------------

Comment (by adamsilverstein):

 This brings up my question: can we leverage these new functions in core
 already?

 Is the plan to update the existing cache functions to accept multiple
 keys? Should these new functions be "private" or internal (start with
 `_`)?

 Replying to [comment:3 spacedmonkey]:
 > These functions can be used in the following places.
 >
 > - update_meta_cache
 > - update_post_cache
 > - update_term_cache
 > - clean_object_term_cache
 > - clean_term_cache
 > - wp_delete_post

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


More information about the wp-trac mailing list