| |
| |
|
|
|
|
| |
|
| |
|
| :: |
| Author |
Message |
wwwmaster
Joined: 10 Mar 2007 Posts: 9
|
Posted: Sat Mar 10, 2007 9:16 pm Post subject: Modifying caching period |
|
|
Hello,
I just found this awesome RSS-feeds and sitemaps modification.
I am currently using another RSS feed MOD for my phpBB, and me and my users use it to read messages on the board.
I would like to replace my current RSS feed with GYM sitemaps RSS feed in order to make the server load smaller with the caching feature.
However, there is one problem. The smallest cache period seems to be 1 hour, which is far too long. I would like to have a caching period of 5 minutes, so that new messages on board can be retrieved from the feed in time.
I already had a quick look in the code, but I wasn't able to find the code where cache freshness is checked. Can you point me to right direction? |
|
|
| Back to top |
|
 |
|
 |
wwwmaster
Joined: 10 Mar 2007 Posts: 9
|
Posted: Mon Mar 12, 2007 10:20 am Post subject: Re: Modifying caching period |
|
|
| You can forget the earlier message, it seems to work simply by setting the cache period to 0.1. |
|
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 15242
|
|
| Back to top |
|
 |
HB phpBB SEO Team

Joined: 16 Oct 2006 Posts: 831
|
Posted: Mon Mar 12, 2007 4:03 pm Post subject: Re: Modifying caching period |
|
|
| wwwmaster wrote: | | The smallest cache period seems to be 1 hour, which is far too long. I would like to have a caching period of 5 minutes, so that new messages on board can be retrieved from the feed in time. |
Statistically speaking, a five minute refresh period means the cache would be on average within 2.5 minutes of current. Does your board see that much activity that being a couple minutes out of date would matter?
The purpose of caching is to save server resources. Updating once an hour is still within 30 minutes on average. For what it's worth, I think an RSS feed should be slightly out of date as it's meant for background browsing. Those who want up-to-the-second accuracy will just visit the board. |
_________________ Dan Kehn |
|
| Back to top |
|
 |
wwwmaster
Joined: 10 Mar 2007 Posts: 9
|
Posted: Thu Mar 15, 2007 7:20 am Post subject: Re: Modifying caching period |
|
|
| HB wrote: | | Statistically speaking, a five minute refresh period means the cache would be on average within 2.5 minutes of current. Does your board see that much activity that being a couple minutes out of date would matter? |
Well, I am using the RSS feed to moderate the board and read all the messages. Therefore I would like to be sure that I miss no messages.
| HB wrote: | | The purpose of caching is to save server resources. Updating once an hour is still within 30 minutes on average. For what it's worth, I think an RSS feed should be slightly out of date as it's meant for background browsing. Those who want up-to-the-second accuracy will just visit the board. |
Even a 5 minute cache period is good, since the current RSS feed is fetched 2 times in a minute. So, caching would save quite much resources. |
|
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 15242
|
Posted: Thu Mar 15, 2007 10:45 am Post subject: Re: Modifying caching period |
|
|
Well, you would not miss much if you'd wait let's say 10, or even 20 minutes before you clear cache. As HB said this most likely mean you'll get fresh datas every 5 or ten minutes in our example, which already allow you to moderate quite fast.
I'm not sure it would be worth is to build up cache for only one or two calls to the cached file between two cache regenerations.
++ |
_________________ Useful links :
SEO Forum || SEO Directory || SEO phpBB || SEO phpBB3 || Search
____________________
Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Référencement phpBB3 || Recherche |
|
| Back to top |
|
 |
|
|
| Navigation |
Similar Topics |
|
|
|
|
|
|
|
| |
|
|
|
|
| |
|
|
|
|
| |