phpBB SEO
Boards
Directory  
SEO  
Downloads
  phpBB SEO : Search Engine Optimization, Directory, Forums  
Index
Forums
Annuaire
Référencement
Télécharger
 
  Search Rechercher
    Register
Username :  Password :  Log me on automatically each visit  
S'enregistrer  
 
   
Modifying caching period

 
Post new topic   Reply to topic    phpBB SEO » SEO Forum  » phpBB SEO TooLKit  » GYM Sitemaps
::  
Author Message
wwwmaster



Joined: 10 Mar 2007
Posts: 9

Modifying caching periodPosted: 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

Modifying caching periodPosted: 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
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 15242

Modifying caching periodPosted: Mon Mar 12, 2007 2:35 pm    Post subject: Re: Modifying caching period

Exactly, you can set up to two digit after zero Wink

I implemented it in hours because I do think we don't need to update feeds every minutes, but I left the possibility to go under one hour still.


++

_________________
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
Visit poster's website
HB
phpBB SEO Team
phpBB SEO Team


Joined: 16 Oct 2006
Posts: 831

Modifying caching periodPosted: 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
Visit poster's website
wwwmaster



Joined: 10 Mar 2007
Posts: 9

Modifying caching periodPosted: 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
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 15242

Modifying caching periodPosted: 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
Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    phpBB SEO » SEO Forum  » phpBB SEO TooLKit  » GYM Sitemaps
Page 1 of 1

Navigation Similar Topics

Jump to: