vuestorefront / vue-storefront-1

The open-source frontend for any eCommerce. Built with a PWA and headless approach, using a modern JS stack. We have custom integrations with Magento, commercetools, Shopware and Shopify and total coverage is just a matter of time. The API approach also allows you to merge VSF with any third-party tool like CMS, payment gateways or analytics. Newest updates: https://blog.vuestorefront.io. Always Open Source, MIT license.
https://www.vuestorefront.io
MIT License
18 stars 13 forks source link

Disabled CMS block still served from cache #235

Closed bloodf closed 3 years ago

bloodf commented 3 years ago

From vue-storefront created by eerohakio: vuestorefront/vue-storefront#5821

Current behavior

If CMS block is disabled from Magento it is still showing in frontend as its served from cache. However CMS block gets removed from Elasticsearch once its disabled as CMS block indexer utilizes is_active attribute filter when fetching blocks to index. This behaviour is valid at least when using CMS blocks as category "landing page".

Expected behavior

Once CMS block is disabled it should be not visible in frontend anymore.

Steps to reproduce the issue

  1. Create CMS block with some content
  2. Add CMS block to category as landing page
  3. Visit category to warm cache
  4. Disable CMS block
  5. View category

Version of Vue Storefront

Can you handle fixing this bug by yourself?

Which Release Cycle state this refers to? Info for developer. (doesn't apply to Next)

Pick one option.

Environment details

Additional information

Environment utilizes Varnish. When refreshing cache x-cache and x-vs-cache headers are correctly showing "Miss" but content is still not updated.