{"action":"created","issue":{"url":"https://api.github.com/repos/nexcess/magento-turpentine/issues/473","labels_url":"https://api.github.com/repos/nexcess/magento-turpentine/issues/473/labels{/name}","comments_url":"https://api.github.com/repos/nexcess/magento-turpentine/issues/473/comments","events_url":"https://api.github.com/repos/nexcess/magento-turpentine/issues/473/events","html_url":"https://github.com/nexcess/magento-turpentine/issues/473","id":30169740,"number":473,"title":"can't flush topline block in cache","user":{"login":"R0n1n-77","id":6992355,"avatar_url":"https://avatars.githubusercontent.com/u/6992355?v=3","gravatar_id":"","url":"https://api.github.com/users/R0n1n-77","html_url":"https://github.com/R0n1n-77","followers_url":"https://api.github.com/users/R0n1n-77/followers","following_url":"https://api.github.com/users/R0n1n-77/following{/other_user}","gists_url":"https://api.github.com/users/R0n1n-77/gists{/gist_id}","starred_url":"https://api.github.com/users/R0n1n-77/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/R0n1n-77/subscriptions","organizations_url":"https://api.github.com/users/R0n1n-77/orgs","repos_url":"https://api.github.com/users/R0n1n-77/repos","events_url":"https://api.github.com/users/R0n1n-77/events{/privacy}","received_events_url":"https://api.github.com/users/R0n1n-77/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/nexcess/magento-turpentine/labels/support","name":"support","color":"02e10c"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":12,"created_at":"2014-03-25T22:24:26Z","updated_at":"2015-07-22T12:31:38Z","closed_at":"2015-07-22T12:31:38Z","body":"Hi, I'm having an issue flushing a \"topline\" block in cache.\r\nUsing Turpentine 0.6.0, Varnish 3 and Magento 1.8. All works fine, excluding the topline block located in root reference in my custom template. Issue reproduces as follows:\r\n- when user logs in and browses to any cached page, topline block shows no login\r\n- when user logs out and browses to a cached page, the opposite happens, topline shows that user is still logged in.\r\nHere's the relevant part of the /app/design/frontend/theme/layout/local.xml:\r\n```\r\n<reference name=\"root\">\r\n            <reference name=\"root\">\r\n                <action method=\"setTemplate\"><template>page/2columns-left.phtml</template></action>\r\n            </reference>\r\n            <!--<remove name=\"left\"></remove>-->\r\n\r\n            <block type=\"page/html_notices\" name=\"global_notices\" as=\"global_notices\" template=\"page/html/notices.phtml\" />\r\n            <block type=\"core/messages\" name=\"global_messages\" as=\"global_messages\"/>\r\n            <block type=\"core/messages\" name=\"messages\" as=\"messages\"/>\r\n\r\n\t\t\t<!-- top login -->\r\n            <block type=\"core/template\" name=\"topline\" as=\"topline\" template=\"custom/topline.phtml\">\r\n\t            <action method=\"insert\">\r\n\t                <block_name_to_insert>top.links</block_name_to_insert>\r\n\t                <sort_relative_to_other_childname/>\r\n\t                <sort_before_or_after/>\r\n\t                <alias>topLinks</alias>\r\n\t            </action>\r\n            \r\n                <block type=\"page/switch\" name=\"store_language\" as=\"store_language\"\r\n                       template=\"page/switch/languages.phtml\"/>\r\n                <block type=\"directory/currency\" name=\"currency_top\" template=\"page/switch/currency.phtml\"/>\r\n                <block type=\"customer/form_login\" name=\"mini_login\" template=\"customer/form/mini.login.phtml\"/>\r\n                <block type=\"core/template\" name=\"socialogin\" as=\"socialogin\" template=\"customer/socialogin.phtml\"></block>\r\n                <block type=\"buyshopconfig/twitter\" name=\"twitter_last_feed\" as=\"twitter_last_feed\" template=\"twitter/twitter_last_feed.phtml\"/>v\r\n            </block>\r\n```\r\n\r\nI tried to cause the topline block to be flushed in cache by adding a following to turpentine_esi.xml:\r\n```\r\n<reference name=\"topline\">\r\n<block type=\"customer/form_login\" name=\"mini_login\" template=\"customer/form/mini.login.phtml\"/>\r\n    <action method=\"setEsiOptions\">\r\n        <params>\r\n            <access>private</access>\r\n            <method>esi</method>\r\n        </params>\r\n    </action>\r\n</block>\r\n</reference>\r\n```\r\n\r\nI tried different options, switching method to ajax, setting ttl 0, dimmy_block head, dummy_block root.... But it makes no difference, just like the block is not parsed in turpentine_esi.xml.\r\nIf I add the \"setEsiOptions\" to my theme's local.xml, the topline block fails to load.\r\nI need either to flush this block from cache, or exclude it from caching, doesn't matter.\r\nPlease advise.\r\nThanks in advance."},"comment":{"url":"https://api.github.com/repos/nexcess/magento-turpentine/issues/comments/123705729","html_url":"https://github.com/nexcess/magento-turpentine/issues/473#issuecomment-123705729","issue_url":"https://api.github.com/repos/nexcess/magento-turpentine/issues/473","id":123705729,"user":{"login":"aricwatson","id":7072513,"avatar_url":"https://avatars.githubusercontent.com/u/7072513?v=3","gravatar_id":"","url":"https://api.github.com/users/aricwatson","html_url":"https://github.com/aricwatson","followers_url":"https://api.github.com/users/aricwatson/followers","following_url":"https://api.github.com/users/aricwatson/following{/other_user}","gists_url":"https://api.github.com/users/aricwatson/gists{/gist_id}","starred_url":"https://api.github.com/users/aricwatson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aricwatson/subscriptions","organizations_url":"https://api.github.com/users/aricwatson/orgs","repos_url":"https://api.github.com/users/aricwatson/repos","events_url":"https://api.github.com/users/aricwatson/events{/privacy}","received_events_url":"https://api.github.com/users/aricwatson/received_events","type":"User","site_admin":false},"created_at":"2015-07-22T12:31:38Z","updated_at":"2015-07-22T12:31:38Z","body":"This should be fixed as of 0.6.2 by PR https://github.com/nexcess/magento-turpentine/pull/626"}}