Message Boards

How can i load header portlet only once?

Amruta Pokhare, modified 2 Years ago.

How can i load header portlet only once?

New Member Post: 1 Join Date: 11/15/21 Recent Posts

I am new to liferay. And i am working on an already developed liferay project by my team. I want to find out a way to load header portlet only once at the begining to avoid its load time in each and every module.
for e.g. when i login Dashboard page is displayed where header portlet along with dashboard portlet is loaded once. but when i navigate to information page again the header page/portlet is loaded along with information portlet.. and similarly happens for all pages.
header portlet is common for all pages so how can i avoid its load for each page.

thumbnail
Olaf Kock, modified 2 Years ago.

RE: How can i load header portlet only once?

Liferay Legend Posts: 6403 Join Date: 9/23/08 Recent Posts

What problem is that supposed to solve? I'm sensing a x-y-problem. (https://xyproblem.info/)

If assembling the portlet takes too long, you can certainly cache its output, but what is requested/rendered will depend on the concrete content (e.g. graphics etc)