feat: 性能优化

This commit is contained in:
耗子 2024-11-19 17:47:44 +08:00
parent 789c920032
commit 7121b4b7ef
No known key found for this signature in database
GPG key ID: C964D7226D045DAA
8 changed files with 63 additions and 57 deletions

View file

@ -346,7 +346,7 @@ if ( ! class_exists( 'WP_CHINA_YES_Options' ) ) {
} else if ( $this->args['database'] === 'network' ) {
update_site_option( $this->unique, $data );
} else {
update_option( $this->unique, $data );
update_option( $this->unique, $data, true );
}
do_action( "wp_china_yes_{$this->unique}_saved", $data, $this );

View file

@ -115,7 +115,7 @@ if ( ! function_exists( 'wp_china_yes_import_ajax' ) ) {
}
// Success
update_option( $unique, $data );
update_option( $unique, $data, true );
wp_send_json_success();