Opened 4 years ago
Closed 4 years ago
#54499 closed defect (bug) (fixed)
REST API: Use global transients for URL details endpoint.
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | 5.9 | Priority: | normal |
| Severity: | normal | Version: | |
| Component: | REST API | Keywords: | has-patch has-unit-tests commit |
| Focuses: | performance | Cc: |
Description
The WP_REST_URL_Details_Controller caches the results of a URL request for 60 minutes in the set_cache() method, it in turn calls the set_transient() function.
As it's safe to assume the requested URL will return the same output regardless of the site requesting it, global transients can be used with get_site_transient() and set_site_transient().
Change History (5)
This ticket was mentioned in Slack in #core by audrasjb. View the logs.
4 years ago
This ticket was mentioned in PR #2000 on WordPress/wordpress-develop by costdev.
4 years ago
#3
- Keywords has-patch has-unit-tests added; needs-patch removed
Trac ticket: https://core.trac.wordpress.org/ticket/54499
Note: See
TracTickets for help on using
tickets.
Pulling this into 5.9 as URL Details endpoint is introduced in 5.9.