REST API: Cache schema in block pattern and menu item endpoints.

Performance improvement to add schema caching to pattern and menu item REST endpoints, so identical schema object are not needlessly regenerated.

Props spacedmonkey.
Fixes #58657. See [45811].


Built from https://develop.svn.wordpress.org/trunk@56093


git-svn-id: http://core.svn.wordpress.org/trunk@55605 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
K. Adam White
2023-06-28 15:53:26 +00:00
parent 88a4cf17a6
commit d72667d737
6 changed files with 36 additions and 6 deletions

View File

@@ -16,7 +16,7 @@
*
* @global string $wp_version
*/
$wp_version = '6.3-alpha-56092';
$wp_version = '6.3-alpha-56093';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.