留言板

Cache in liferay????

thumbnail
Parag Negi,修改在12 年前。

Cache in liferay????

Junior Member 帖子: 69 加入日期: 11-8-31 最近的帖子
Hi gang,

I am doing lots of database activity in liferay, calling classes and using hibernate stuff for fetching values from liferay tables on page load, also getting database values from my applciations database on page load, etc....
And i am bit curious if cache needs to setup in liferay? and to what level???

Can someone please direct me in right direction, i would be very greatful..

Thanks and Regards,
Parag
thumbnail
jelmer kuperus,修改在12 年前。

RE: Cache in liferay????

Liferay Legend 帖子: 1191 加入日期: 10-3-10 最近的帖子
Are you using servicebuilder? if so pretty much everything is cached already
thumbnail
Parag Negi,修改在12 年前。

RE: Cache in liferay????

Junior Member 帖子: 69 加入日期: 11-8-31 最近的帖子
Hi again Jelmer,

No, i don't think i am using servicebuilder, frankly, i heard it's name for first time.

Basically, i have a bunch of portlets, they fetch data from database everytime a page is loaded. the data is being fetched from liferay tables and my own applciation tables too.

Although, i have some bit of java coding to decrease load on database, i am trying to find if there is some good way available in liferay which can easy my pressure off by small change/coding.

It would be God's blessing if something like this exists.

Thanks,
Parag Negi
thumbnail
jelmer kuperus,修改在12 年前。

RE: Cache in liferay????

Liferay Legend 帖子: 1191 加入日期: 10-3-10 最近的帖子
In liferay you can use this

PortalCache portalCache = MultiVMPoolUtil.getCache("your cache name");


Or since you use hibernate, you could use it's second level caching functionalities