I have a block on the header with welcome message and user name to show only if a user logged in . I'm using lesti fpc extension when fpc enabled and logged into a customer account and go back to home page but message block on the header is not showing as I'm logged in. but in some inner pages and it will also disappear if I refresh a page several times .
How can I solve this issue? do I have hole punch this block if yes how to do it as it involve sessions ?
-
2If you are using Magento 1.7 or lower: gordonlesti.com/lestifpc-magento-1-7-and-the-welcome-messageB00MER– B00MER2015年11月12日 04:38:48 +00:00Commented Nov 12, 2015 at 4:38
-
1@B00MER but I'm using magento 1.9.1.1Chamal Chamikara– Chamal Chamikara2015年11月12日 05:50:10 +00:00Commented Nov 12, 2015 at 5:50
1 Answer 1
Install Aoe_TemplateHints and utilize it to identify the block names and the cache status. After this you can specify in the configuration of the Lesti_FPC module to not cache the block in question.
More than likely the welcome block differs from the name that is standard welcome put the new block name in the lazy blocks area of the configuration in the admin:
How Lesti_FPC works:
-
I have removed the default block and loaded it using ajax after the page load so it seems solved the issue , but still there is a small delay of initiating the ajax, So I will also try your method :)Chamal Chamikara– Chamal Chamikara2015年11月13日 04:20:13 +00:00Commented Nov 13, 2015 at 4:20
-
1Cool, glad to hear. Normally this block should be automatically hole punched for you with the lestiFPC module.B00MER– B00MER2015年11月13日 06:25:11 +00:00Commented Nov 13, 2015 at 6:25
Explore related questions
See similar questions with these tags.