Foren

RSS update frequency configuration !

Yan Naing Oo, geändert vor 12 Jahren.

RSS update frequency configuration !

Regular Member Beiträge: 179 Beitrittsdatum: 17.02.11 Neueste Beiträge
HI all,

Do you know the RSS portlets, feeds update manually configuration ? because by default like 20 to 30 minutes around so that need to change more freq.
if there anybody know it ?

thanks
thumbnail
Sandeep Nair, geändert vor 12 Jahren.

RE: RSS update frequency configuration !

Liferay Legend Beiträge: 1744 Beitrittsdatum: 06.11.08 Neueste Beiträge
Hi,

It is hardcoded. The cache refreshes after 20 minutes. You can see the code at RSSWebCacheItem. The following sets refresh time

private static final long _REFRESH_TIME = Time.MINUTE * 20;

Regards,
Sandeep
Yan Naing Oo, geändert vor 12 Jahren.

RE: RSS update frequency configuration !

Regular Member Beiträge: 179 Beitrittsdatum: 17.02.11 Neueste Beiträge
Sandeep Nair:
Hi,

It is hardcoded. The cache refreshes after 20 minutes. You can see the code at RSSWebCacheItem. The following sets refresh time

private static final long _REFRESH_TIME = Time.MINUTE * 20;

Regards,
Sandeep


Hi Sandeep,

I am using 6.0.6 GA, let me know the filename and which is located in ?

Thanks again.
thumbnail
Sandeep Nair, geändert vor 12 Jahren.

RE: RSS update frequency configuration !

Liferay Legend Beiträge: 1744 Beitrittsdatum: 06.11.08 Neueste Beiträge
It is RSSWebCachItem in portal-impl. You have to have liferay source to see it. The complete path is

portal-impl\src\com\liferay\portlet\rss\util\RSSWebCacheItem.java

Regards,
Sandeep
Yan Naing Oo, geändert vor 12 Jahren.

RE: RSS update frequency configuration !

Regular Member Beiträge: 179 Beitrittsdatum: 17.02.11 Neueste Beiträge
Sandeep Nair:
It is RSSWebCachItem in portal-impl. You have to have liferay source to see it. The complete path is

portal-impl\src\com\liferay\portlet\rss\util\RSSWebCacheItem.java

Regards,
Sandeep


Hi Sandeep,

I using CE 6.0.6 GA, there is no source file inside, portal-impl is just JAR file only. so if that anyothers ways to change the value in it .
example, portal-ext ?

Thanks
thumbnail
Hitoshi Ozawa, geändert vor 12 Jahren.

RE: RSS update frequency configuration !

Liferay Legend Beiträge: 7942 Beitrittsdatum: 24.03.10 Neueste Beiträge
You have to get Liferay's source code and create an ext plugin.

http://www.liferay.com/documentation/liferay-portal/6.0/development
Yan Naing Oo, geändert vor 12 Jahren.

RE: RSS update frequency configuration !

Regular Member Beiträge: 179 Beitrittsdatum: 17.02.11 Neueste Beiträge
Hitoshi Ozawa:
You have to get Liferay's source code and create an ext plugin.

http://www.liferay.com/documentation/liferay-portal/6.0/development


Hi Hitoshi,

I am not very familiar with ext plugin, if anyothers way to override the RSSWebCacheItem.java file into liferay.
I only want to change private static final long _REFRESH_TIME = Time.MINUTE * 5; only.

Thanks