vuestorefront / magento2-vsbridge-indexer

This is official Vue Storefront, native, Magento2 indexer
https://vuestorefront.io
MIT License
68 stars 90 forks source link

Port cache invalidation to 2.x #369

Open tunght13488 opened 3 years ago

rfaa-se commented 3 years ago

Hi, any progress with getting this merged? :)

rfaa-se commented 3 years ago

Hi @tunght13488, I tried your latest changes and they are working a lot better. However there is still one issue I found, when adding a new product in magento I cannot see it when viewing the categories in vue storefront. I need to update an old product before it is displayed. Entering the url to the new product works though. I haven't looked at the code but perhaps when adding a new product it's not updating the related categories?

tunght13488 commented 3 years ago

Hi @tunght13488, I tried your latest changes and they are working a lot better. However there is still one issue I found, when adding a new product in magento I cannot see it when viewing the categories in vue storefront. I need to update an old product before it is displayed. Entering the url to the new product works though. I haven't looked at the code but perhaps when adding a new product it's not updating the related categories?

This PR only tries to port the existing cache invalidation logic into 2.x, not fixing anything

For your case I suggest looking into index table. Adding new product should add some changelog to vsbridge product index