Fastly is not setting the converted cache tags
Closed this issue · 2 comments
laszloborzas commented
Issue description
Fastly is not setting the converted cache tags, I've done some debugging and the culprit seems to be the ResponsePlugin and the identical operator here:
fastly-magento2/Model/ResponsePlugin.php
Line 69 in 7701a62
As you can see on the screenshot, the value returned by
$this->config->getType()
is string, and the Config::FASTLY
is int. Because of this, it never sets the converted cache tags and the module is not able to clear the cache per tag.
Steps to reproduce the issue
- Have Fastly configured
- Load a category page
- Check headers
What's the expected result?
- the X-Magento-Tags (or the Surrogate-Key) header contains the converted Magento tags instead of the original ones
e.g. for category page: cat_c c505 cat_p p571041
What's the actual result?
- the X-Magento-Tags (or the Surrogate-Key) header contains the original Magento tags instead of the converted ones
e.g. for category page: cat_c,cat_c_505,cat_p,cat_p_571041
Additional details / screenshot
I'm using Magento Commerce 2.4.2-p2 and the Fastly Magento module version 1.2.164.
bbutkovic commented
Thank you for raising the issue with us, @laszloborzas!
vvuksan commented
Was released in 1.2.194