Timeline for Magento with Varnish - var/cache folder still being used
Current License: CC BY-SA 4.0
11 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Feb 9, 2021 at 19:18 | comment | added | paj | I don't mean the vcl, I mean the magento config. | |
Feb 9, 2021 at 19:17 | answer | added | paj | timeline score: 0 | |
Feb 9, 2021 at 19:16 | comment | added | Odin | @paj may I post my default.vcl so you can help me understand it? Thanks in advance. | |
Feb 9, 2021 at 19:07 | comment | added | paj | Your varnish configuration is incorrect. Double check all your settings again... | |
Feb 9, 2021 at 19:05 | comment | added | Odin | Yes, shop is in production mode. Main issue being is that, when I update some content, that doesn't reflect on the frontend. I have to, manually, clean the contents from var/cache/ and restart Varnish. It seems updating from backend doesn't invalidate cache OR something else is caching the old content before we have the chance to access the new content. I already disabled the Amasty Cache Warmer we were using to try to affect the behavior. | |
Feb 9, 2021 at 19:03 | comment | added | paj | Well the varnish header shows that you are talking to the varnish server, if you are in production mode the other headers might not be shown - I am not sure about that - if you still have files being produced in var/cache then your magento varnish configuration is incorrect. | |
Feb 9, 2021 at 18:54 | comment | added | Odin | @paj did what you told, there's no x-magento-cache, but there is x-varnish. Maybe because this ecommerce is behind cloudflare? | |
Feb 9, 2021 at 17:39 | comment | added | paj | in your varnish vcl comment out the unset resp.http.X-Varnish command and then restart varnish - if varnish is working you will see an x-varnish and x-magento-cache header being sent when you load a page. x-magento-cache will show HIT or MISS depending on if the page is cached or not. If you don't see this header varnish is not configured correctly. | |
Feb 9, 2021 at 16:07 | comment | added | Odin | Yes, I can confirm I followed all those steps, plus more from other guides. | |
Feb 9, 2021 at 15:57 | comment | added | Sarvagya | Can you confirm you have followed all the steps mentioned here devdocs.magento.com/guides/v2.4/config-guide/varnish/… | |
Feb 9, 2021 at 15:43 | history | asked | Odin | CC BY-SA 4.0 |