Closed (fixed)
Project:
Commerce Core
Version:
8.x-2.x-dev
Component:
Product
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
14 Jun 2016 at 20:30 UTC
Updated:
29 Jun 2016 at 17:34 UTC
Jump to comment: Most recent
If you change the display of a variation, say by turning the SKU display off, it will not reflect on the product page, even after a refresh. If you change and attribute and trigger the ajax, it will correct itself since the AJAX is not cached.
The problem is the commerce_product_view tag is not invalidated because as far as Drupal is concerned, nothing on the "product" has changed. I am unsure if the variation should be invalidating the cache or if the product should be setting a different cache tag.
Comments
Comment #2
smccabe commentedComment #3
smccabe commentedEnded up fixing it in an entity_type hook, I couldn't figure out a way to have the display config entity track the proper tag itself, so just hook the update with a cache tag invalidate call.
https://github.com/drupalcommerce/commerce/pull/404
Comment #4
smccabe commentedComment #5
mglamanThis was discovered in #2742207: Port commerce_product tests to BrowserTest, marking that as parent because it is blocked by this.
Comment #6
mglamanComment #8
bojanz commentedMerged.