Make WordPress Core

Opened 3 years ago

Last modified 8 months ago

#55675 new enhancement

Improve performance Themes REST API endpoint

Reported by: furi3r's profile furi3r Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version:
Component: REST API Keywords:
Focuses: performance Cc:

Description

await wp.apiFetch({ path: 'wp/v2/themes?_envelope'});

The first time you call it, we have 2 duplicated queries.
The second time you call it, we have 1 duplicated query.

Attachments (2)

Screen Shot 2022-05-04 at 3.19.48 PM.png (70.1 KB) - added by furi3r 3 years ago.
First call
Screen Shot 2022-05-04 at 3.20.16 PM.png (45.6 KB) - added by furi3r 3 years ago.
Second call

Download all attachments as: .zip

Change History (4)

This ticket was mentioned in Slack in #core-performance by swissspidy. View the logs.


8 months ago

Note: See TracTickets for help on using tickets.