Make WordPress Core

Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#55029 closed enhancement (fixed)

Implement the wp_cache_*_multiple function in core

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

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
3 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.


3 years ago
#2

  • Keywords has-patch has-unit-tests added

felixarntz commented on PR #2271:


3 years ago
#3

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

#4 @adamsilverstein
3 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
3 years ago

  • Owner set to spacedmonkey
  • Status changed from new to assigned

#6 @spacedmonkey
3 years ago

  • Resolution set to fixed
  • Status changed from assigned to closed

In 52707:

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

Implement the wp_cache_add_multiplewp_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.


3 years ago

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


3 years ago

#9 @spacedmonkey
3 years ago

Dev note ready for review.

Note: See TracTickets for help on using tickets.