capital P dan* it

Peter Fabian 2022-09-28 14:43:05 +02:00
parent fc850dbd12
commit 214517eba2
1 changed files with 3 additions and 3 deletions

@ -1,4 +1,4 @@
# What is High-performance Order Storage (HPOS)?
# What is High-Performance Order Storage (HPOS)?
WooCommerce has stored order-related data in the post and postmeta tables in the database as a custom WordPress post type so far. This has allowed everyone working in the ecosystem to take advantage of extensive APIs provided by the WordPress core in managing orders as custom post types.
@ -20,7 +20,7 @@ Now that this has changed, directly reading from these WordPress tables may mean
As we roll out the project, we are going to be following these policies:
1. High-performance Order Storage will not be enabled for any shop by default for now. This means end users can continue to safely upgrade WooCommerce.
1. High-Performance Order Storage will not be enabled for any shop by default for now. This means end users can continue to safely upgrade WooCommerce.
2. Shops can opt-in to use the HPOS (please see the section _How to enable HPOS_ below). When they do so, they can enable *data synchronization* (or _sync_, in short) to provide an additional layer of compatibility:
1. Whenever we write data to HPOS tables, we will write the same to the posts table as well. This way, if there are incompatible plugins that still access data directly in the posts table, they will read updated data from the posts table.
2. Similarly, when we read orders from custom order tables, we will read the same order from the posts table as well and compare them. If there is any difference, then itd imply a direct write to posts table and WC will update the order in the custom tables accordingly.
@ -64,7 +64,7 @@ wp wc cot sync
If you use the WooCommerce repo directly as part of your development environment then instead of downloading the zip package (step 2), checkout the `cot-main` branch from the monorepo and build WC using `pnpm -- turbo run build --filter=woocommerce`. We will keep the `cot-main` branch updated with the contents of the release package.
# Supporting High-performance Order Storage
# Supporting High-Performance Order Storage
While the backward compatibility policies make it easier for merchants to use the project, for extension developers this means that you have to support both Posts and HPOS for a while.