Make WordPress Core

Opened 5 years ago

Closed 5 years ago

Last modified 4 years ago

#55029 closed enhancement (fixed)

Implement the wp_cache_*_multiple function in core

Reported by: spacedmonkey Owned by: spacedmonkey
Priority: normal Milestone: 6.0
Component: Cache API Version:
Severity: normal Keywords: has-patch has-unit-tests
Cc: Focuses: performance

Description

In #54574, new functions called wp_cache_add_multiple, wp_cache_delete_multiple
and wp_cache_update_multiple are added. These functions can and should be used in core functions to get the benefit of adding these functions.

Change History (9)

#1 @spacedmonkey
5 years ago

I have highlight some places that could use these new functions.

Add

Delete

Set

This ticket was mentioned in ​PR #2271 on ​WordPress/wordpress-develop by ​spacedmonkey.


5 years ago
#2

  • Keywords has-patch has-unit-tests added

​felixarntz commented on ​PR #2271:


5 years ago
#3

@spacedmonkey Happy to review this once #2018 has been committed to core, so that this PR can be refreshed. 👍

#4 @adamsilverstein
5 years ago

@spacedmonkey Nice work! The latest PR looks good to me. I assume you have done some testing, but it would be good to get this merged soon so it can get wider testing.

#5 @spacedmonkey
5 years ago

  • Owner set to spacedmonkey
  • Status new → assigned

#6 @spacedmonkey
5 years ago

  • Resolution → fixed
  • Status assigned → closed

In 52707:

Cache: Use wp_cache_*_multiple() in core functions.

Implement the wp_cache_add_multiple, wp_cache_set_multiple and wp_cache_delete_multiple in a number of core functions after they were introduced in [52700]

Props: spacedmonkey, adamsilverstein, flixos90, mitogh.
Fixes: #55029.

This ticket was mentioned in ​Slack in #hosting-community by javier. ​View the logs.


5 years ago

This ticket was mentioned in ​Slack in #hosting-community by amykamala. ​View the logs.


5 years ago

#9 @spacedmonkey
4 years ago

Dev note ready for ​review.

Note: See TracTickets for help on using tickets.