Skip to content

Commit aae0890

Browse files
committed
fix: endpoint schemas introspection cache keys
1 parent 9c2f686 commit aae0890

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

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

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

911911
list( $addon, $backend ) = $handler;
912912

913+
$introspection_data = json_decode( self::$introspection_data, true );
914+
$introspection_data['endpoint'] = $request['endpoint'];
915+
self::$introspection_data = wp_json_encode( $introspection_data );
916+
913917
$schema = self::cache_lookup( $addon::NAME, $backend, 'schema' );
914918
if ( null !== $schema ) {
915919
return $schema;

0 commit comments

Comments
 (0)