You are here: Re: Magpie RSS Caching « PHP Programming Language « IT news, forums, messages
Re: Magpie RSS Caching

Posted by Andy Hassall on 07/23/06 21:58

On 23 Jul 2006 13:58:29 -0700, StevePBurgess@gmail.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.uk :: http://www.andyh.co.uk
http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация