4

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 ?

2

1 Answer 1

2

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:

2
  • 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 :) Nov 13, 2015 at 4:20
  • 1
    Cool, glad to hear. Normally this block should be automatically hole punched for you with the lestiFPC module.
    – B00MER
    Nov 13, 2015 at 6:25

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.