Deprecated: 関数 WP_Dependencies->add_data() がバージョン 6.9.0 から非推奨になった引数付きで呼び出されました。IE の条件付きコメントは、対応しているすべてのブラウザで無視されます。 in /home/artws/woo-japan.info/public_html/wp-includes/functions.php on line 6131

Deprecated: 関数 WP_Dependencies->add_data() がバージョン 6.9.0 から非推奨になった引数付きで呼び出されました。IE の条件付きコメントは、対応しているすべてのブラウザで無視されます。 in /home/artws/woo-japan.info/public_html/wp-includes/functions.php on line 6131
コンテンツへスキップ →

enable-hpos

How to enable High Performance Order Storage

2023年10月にリリースされたWooCommerce 8.2から、新規インストール時にHPOSがデフォルトで有効になりました。既存のストアは、以下の手順で「WordPress Posts Storage」から「High-Performance Order Storage」に切り替えることができます。

High-Performance Order Storageを有効にするには、既存ストアはまずpostsテーブルとordersテーブルを同期させる必要があります。

1.WooCommerce > 設定 > 詳細 > 機能**に移動します。
2.互換モードを有効にする(注文を投稿テーブルに同期する)"**設定をオンにします。

![Enable HPOS Screen](https://developer.woocommerce.com/wp-content/uploads/2023/12/New-Project-4.jpg)

3.この設定を有効にすると、バックグラウンドのアクションがスケジュールされます。

- The action `wc_schedule_pending_batch_process` checks whether there are orders that need to be backfilled.
- If there are, it schedules another action `wc_run_batch_process` that actually backfills the orders to post storage.
- You can either wait for these actions to run on their own, which should be quite soon, or you can go to **WooCommerce > Status > Scheduled Actions**, find the actions and click on the run button.
- The action will backfill 25 orders at a time, if there are more orders to be synced, then more actions will be scheduled as soon as the previous actions are completed.

![wc_schedule_pending_batch_process Screen](https://developer.woocommerce.com/wp-content/uploads/2023/12/2.jpg)
![wc_run_batch_process Screen](https://developer.woocommerce.com/wp-content/uploads/2023/12/New-Project-5.jpg)

4.両方のテーブルが正常に同期された後、High-Performance Order Storage (HPOS)に切り替えるオプションを選択できるようになる。

- シームレスな移行を確実にするため、しばらく互換モードを維持することをお勧めします。問題が発生した場合は、即座にポストテーブルに戻すことができます。