473,396 Members | 2,039 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

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

Jul 23 '06 #1
3 4078
Ooops I meant 1800 seconds (being half an hour) not 900. But it still
isn't working.

Any idea?

Many thanks,
Steve

St***********@gmail.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
Jul 23 '06 #2
On 23 Jul 2006 13:58:29 -0700, St***********@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 :: an**@andyh.co.uk :: http://www.andyh.co.uk
http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool
Jul 23 '06 #3

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

Jul 24 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: ChronoFish | last post by:
Hello, Snoopy is reporting: Warning: MagpieRSS: Failed to fetch http://some.domain.com/atom.xml. (HTTP Response: HTTP/1.0 407 Proxy Authentication Required ) in \web\rss\magpie\rss_fetch.inc...
0
by: pyda001 | last post by:
I'm trying to read rss weather feeds, but am fairly new to this. Currently I've set up Magpie RSS to read the yahoo weather feeds. So far so good. The problem is that not all fields seem to be...
0
by: Troy Simpson | last post by:
Hi, I have a website which is made up of dynamic pages. Each page that's loaded has some code which looks at which template to load amongst other things, which causes the page to take a little...
5
by: Raj | last post by:
What is the purpose of file system caching while creating a tablespace? Memory on the test server gets used up pretty quickly after a user executes a complex query(database is already activated),...
0
by: StevePBurgess | last post by:
Hi I am using Magpie RSS and want to be able to use feeds on a secure server. I've put a test feed on https://www.on-qu.co.uk/feed88.xml At the command line, I can fetch this file using: ...
4
by: Hermann | last post by:
My site is a bit slow showing the main page so I thought caching query result in PHP will improve performace. Then I read MySQL documentation and saw that MySQL does have a caching feature. So......
8
by: Steve | last post by:
Can any see why Magpie RSS won't accept this RSS Feed (that is valid according to the Feed Validator website). http://www.westyorksprobation.org.uk/rss.php?type=Library This is the code that...
0
by: musicpro64 | last post by:
I am having a problem calling more than one instance of the magpie rss code on a php page (one single instance can be used to display one feed... if I try to display two feeds on a page it...
3
vikas1111
by: vikas1111 | last post by:
Hi All. I want to know how to alter Cache timing in Magpie. I tried to edit rss_cache.inc to 10 seconds but its not working. "var $MAX_AGE = 10; // when are files stale, default one...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.