When are Magento rules product relationships developed?

Magento rule-based product ratios (resale, cross-sell, etc.) are stored in the database table, and I assume they are updated once in a while. Unfortunately, I cannot find documentation about when this will happen or what it causes. It:

  • Cached like a block and expires after a while?
  • Is created every time you save a product?
  • Created by CRON?

I would really appreciate that someone could fill in the blanks for me. I use Enterprise Edition if this helps or makes any difference.

+4
source share
2 answers

So, I dug up the product link data a bit. The corresponding object that we are considering here is catalog/product_link , which the catalog/product object uses to retrieve data from related objects.

While grouped and related products seem to write this to cronjobs, I have not found cases where this data is written to cron-job for the actual upsell / cross-sell products. I will continue to dig a little, but this, apparently, implies that the products are calculated in saved time.

Hope this helps!

Thanks Joe

+1
source

Find observers in the events "catalog_product_save_before" and "catalog_product_save_after" to see in your project when it is running and what function is called.

In the corporate edition, the observer is fired: enterprise_targetrule / observer, function: catalogProductAfterSave ...

0
source

Source: https://habr.com/ru/post/1345533/


All Articles