[wp-trac] [WordPress Trac] #58657: Add in missing caching to `get_item_schema` method to new endpoint
WordPress Trac
noreply at wordpress.org
Wed Jun 28 10:40:29 UTC 2023
#58657: Add in missing caching to `get_item_schema` method to new endpoint
--------------------------+-------------------------
Reporter: spacedmonkey | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: 6.3
Component: REST API | Version: 5.0
Severity: normal | Keywords: needs-patch
Focuses: performance |
--------------------------+-------------------------
In [45811] the schema was cached in a property of a the class. This was
done for performance reasons. However new endpoints I have been added and
this caching was not added. Reviewing code, the following endpoints are
missing the caching.
WP_REST_Block_Pattern_Categories_Controller
WP_REST_Menus_Controller
WP_REST_Menu_Items_Controller
WP_REST_Blocks_Controller
WP_REST_Block_Pattern_Categories_Controller
--
Ticket URL: <https://core.trac.wordpress.org/ticket/58657>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list