Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to clear static CMS Block from the Varnish Cache #1510

Open
knimavat opened this issue Sep 14, 2018 · 2 comments
Open

How to clear static CMS Block from the Varnish Cache #1510

knimavat opened this issue Sep 14, 2018 · 2 comments

Comments

@knimavat
Copy link

I'm using the Magento 1.9 and I have a countdown timer which I've added in the footer section and I've to exclude this Static CMS block from the varnish cache. I tried the identifier of the static block but no luck. Any Idea how to do that?

@mabigo
Copy link

mabigo commented Sep 14, 2018

what about your layout xml and esi policy? please expose them.

@knimavat
Copy link
Author

knimavat commented Sep 15, 2018

I've created the block from the admin side from the CMS - static blocks and the content contains the script for the timer, and the block is fetched in the phtml file. So there's nothing like layout xml for that. But, yes If you are asking for the turpentine_esi.xml layout code is like this

<default>
   <reference name="timer">
     <action method="setEsiOptions">
      <params>
           <access>private</access>
           <ttl>0</ttl>
       </params>
        </action>
    </reference>
</default>

@miguelbalparda miguelbalparda added old-invalid Issues created before 2018-01-01. Will close en mass on Feb 15. and removed old-invalid Issues created before 2018-01-01. Will close en mass on Feb 15. labels Feb 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants