Planned maintenance is scheduled for the week of June 15th - the exact date and time will be announced soon.
See More Details
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: Best use of Caching in liferay
Hi Team,
I have external system (webservice) which returns huge static data that I need to render in a page. what will be best solution in liferay that we need not have to make calls evetime and cache it one place and entire application can access it.
I can transform the response to JSON/ XML /Objects .
Currently I am planning to store on portletsession APPLICATION SCOPE . Need to know any other solution.
Thanks
I have external system (webservice) which returns huge static data that I need to render in a page. what will be best solution in liferay that we need not have to make calls evetime and cache it one place and entire application can access it.
I can transform the response to JSON/ XML /Objects .
Currently I am planning to store on portletsession APPLICATION SCOPE . Need to know any other solution.
Thanks
HI Azam,
Look into MultiVmPool in liferay. http://www.apoorvaprakash.in/2012/03/liferay-cache-key-to-improve.html
Murali
Look into MultiVmPool in liferay. http://www.apoorvaprakash.in/2012/03/liferay-cache-key-to-improve.html
Murali
Thanks Murali but looks like in 6.2 this feature could not be used. As MultiVmPool has no "put method"
Mohammed Azam, modified 12 Years ago.
RE: Best use of Caching in liferay
(Answer)
Regular Member
Posts: 159
Join Date: 11/6/09
Recent Posts
Hi I found the solution . Just refer WikiCacheUtil.java in liferay portal source .
The way liferay has implemented by creating object "_portalCache". and values being set to it. Will write a detailed steps and share it across
Thanks.
The way liferay has implemented by creating object "_portalCache". and values being set to it. Will write a detailed steps and share it across
Thanks.
Hi The only problem that I am facing is the value is returning "null" after some time when the system is idle
How do we increase it to make the the value persists for longer time.
Thanks
How do we increase it to make the the value persists for longer time.
Thanks
Community
Company
Feedback