Magpie RSS Caching

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • StevePBurgess@gmail.com

    #1

    Magpie RSS Caching

    Hi all,

    I am using Magpie RSS and want to change the Caching period to half an
    hour instead of one hour.

    I have modified the line in RSS_CACHE.INC so that it reads:

    var $MAX_AGE = 900; // when are files stale, default one
    hour

    but this doesn't seem to have any effect. It still only gets a fresh
    version of the file every hour.

    Any thoughts?

    Steve

  • StevePBurgess@gmail.com

    #2
    Re: Magpie RSS Caching

    Ooops I meant 1800 seconds (being half an hour) not 900. But it still
    isn't working.

    Any idea?

    Many thanks,
    Steve



    StevePBurgess@g mail.com wrote:
    Hi all,
    >
    I am using Magpie RSS and want to change the Caching period to half an
    hour instead of one hour.
    >
    I have modified the line in RSS_CACHE.INC so that it reads:
    >
    var $MAX_AGE = 900; // when are files stale, default one
    hour
    >
    but this doesn't seem to have any effect. It still only gets a fresh
    version of the file every hour.
    >
    Any thoughts?
    >
    Steve

    Comment

    • Andy Hassall

      #3
      Re: Magpie RSS Caching

      On 23 Jul 2006 13:58:29 -0700, StevePBurgess@g mail.com wrote:
      >I am using Magpie RSS and want to change the Caching period to half an
      >hour instead of one hour.
      >
      >I have modified the line in RSS_CACHE.INC so that it reads:
      >
      var $MAX_AGE = 900; // when are files stale, default one
      >hour
      >
      >but this doesn't seem to have any effect. It still only gets a fresh
      >version of the file every hour.
      >
      >Any thoughts?
      Don't modify the source code of Magpie, use the configuration options
      supplied. IIRC, Magpie uses a constant for the caching period, which it sets to
      a default value, which you can then override. The default value of the variable
      you've modified only takes effect if the constant isn't defined at all.

      --
      Andy Hassall :: andy@andyh.co.u k :: http://www.andyh.co.uk
      http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool

      Comment

      • StevePBurgess@gmail.com

        #4
        Re: Magpie RSS Caching


        Andy Hassall wrote:
        Don't modify the source code of Magpie, use the configuration options
        supplied. IIRC, Magpie uses a constant for the caching period, which it sets to
        a default value, which you can then override. The default value of the variable
        you've modified only takes effect if the constant isn't defined at all.
        >

        Cheers! I had a dig around and found the configuration settings.

        Many thanks

        Steve

        Comment

        Working...