All Products block long term cached
-
It seems like when using the “All Products” block the HTTP request made is cached. The problem is if we change the product names or pictures users won’t see the changes since the http request headers stay the same so the user receives a cached response instead of the updated data. If I go in and change something on the block itself like the number of columns or products to show then the request header changes and thus the cache is broken and new data is fetched. However if I go back and restore the old block settings then the old headers will be sent and thus the old response will be fetched. When product data changes there needs to be a way to bust the cache. Perhaps some parameter on the url would do it.
Until then I think I’ll have to use the product shortcode instead which doesn’t seem to have these issues.
- The topic ‘All Products block long term cached’ is closed to new replies.