Closed lukeholder closed 1 year ago
Introduction of Asynchronous Property in SyncController:
A new feature '$async
' has been introduced to the 'SyncController'. This change brings the ability to simply control whether some tasks should be done in sequence or can be performed simultaneously.
New Options Method added to SyncController: The SyncController has been further enhanced with the addition of a new method called 'options'. This method provides more flexibility and customization options while syncing.
Improvements in SyncController & ProductController Actions: Considerable enhancements have been made to various methods like 'actionAll', 'actionProducts' in the SyncController and 'actionSync' in the ProductsController. These improvements offer more efficient syncing process.
Updates to Product Query Preparing Process: The method 'beforePrepare' in ProductQuery has been revisited to enhance how product queries are prepared. This should lead to faster responses and better database performance.
Enhancements in Product Syncing Methods: The methods 'syncAllProducts' and 'syncProductByShopifyId' within the class Products have seen modifications for better and efficient syncing of products.
Modify Sync Template:
The _sync.twig
template has been updated to reflect all these changes and ensure a smooth user interface interaction, providing a better user experience.
Description
Allows an async flag to run the sync without a queue of the metafields saved after the product saves
php craft shopify/sync/all --async=0
also added to the utility:
Syncing of one product does synchronous syncing, but when mass syncing we put additional things like metafields into the queue.