Skip to content

Commit 3cda0bc

Browse files
committed
fix: endpoint schemas introspection cache keys
1 parent a245edd commit 3cda0bc

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

posts-bridge/includes/class-rest-settings-controller.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -540,6 +540,10 @@ private static function get_endpoint_schema( $addon, $request ) {
540540

541541
list( $addon, $backend ) = $handler;
542542

543+
$introspection_data = json_decode( self::$introspection_data, true );
544+
$introspection_data['endpoint'] = $request['endpoint'];
545+
self::$introspection_data = wp_json_encode( $introspection_data );
546+
543547
$schema = self::cache_lookup( $addon::NAME, $backend, 'schema' );
544548
if ( null !== $schema ) {
545549
return $schema;

0 commit comments

Comments
 (0)