Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
RE: How can i load header portlet only once?
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.
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)
Powered by Liferay™