Synchronizer
Magento\Catalog\Model\Product\ProductFrontendAction\Synchronizer
What it does
This class synchronizes product frontend actions (like recently viewed or recently compared products) between the browser and the database.
Developers use this to persist user product interactions across different devices and sessions, ensuring that recently viewed/compared products are saved to the backend and can be retrieved later.
It handles both guest visitors and logged-in customers by tracking actions through visitor or customer IDs.
Public Methods
- syncActions()
- getActionsByType()
- getAllActions()