I am very intrigued that the new ESI capability may help with a couple problems I have related to changes to the home page appearance depending on whether a user is logged-in or not. On our site, we have a login block on the home page that allows the user to login/logout. Once logged in, we change the wording to say something like “Welcome John Doe”. In addition, in another block on the page we add additional links that are only available to logged-in users. Finally, the main menu is also changed to include some new menu items, again only for logged-in users. I am using public and private caching.
My question: Does ESI only work with widgets, or can I use it for the menus and for other blocks of text? I have found (but not tested) a plugin that allows a widget to be placed in a block of text, so that has promise. But I haven’t figured out what to do about the menus. As it is on the front page, I’d love to have the caching enabled as the performance increase is noticeable.
- The topic ‘Use ESI with logged-in users’ is closed to new replies.