473,811 Members | 2,879 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 4108
Ooops I meant 1800 seconds (being half an hour) not 900. But it still
isn't working.

Any idea?

Many thanks,
Steve

St***********@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
Jul 23 '06 #2
On 23 Jul 2006 13:58:29 -0700, St***********@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 :: an**@andyh.co.u k :: 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
1876
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 on line 230 When trying to get through a Squid proxy. I have set user, pass, proxy_host proxy_port, and is_proxy - yet I can't seem to get passed
0
1261
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 parsed. I'm particularly interested in the "<yweather ... />" field. It just isn't there. Could it be that Magpie ignores it? I believe it mainly seraches for <tag> </tag> fields and nothing else, but I'm not sure. What does the "/>" end of the tag...
0
1744
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 while to be processed. At the moment I have programmatic page caching in the "loader" using paramater caching to send a cached version of every requested page back to the user. How can I get particular elements inside each page to cache without...
5
7860
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), after some investgation i found out that most of it being consumed by filesystem caching... thanks to Liam and Phil Sherman for their valuable suggestions. Is it safe to turn off filesystem caching on every tablespaceon the server(i.e. DIO) ??...
0
1931
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: curl -k https://www.on-qu.co.uk/feed88.xml But Magpie RSS can't fetch it and gives:
4
2988
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... now I dont know if doing the PHP caching is worth the pain. Would there be any noticed performace improvement if I cache query results in PHP, considering that MySQL is already caching the queries? Thanks
8
2503
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 generates it. A SQL query is run first into $result and then: if (mysql_num_rows($result)>0) {
0
1269
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 crashes). Has anyone had success displaying more than one feed on a page with magpie???? if not, any suggestions as to code that might do the job..; I would really appreciate any advice. Have been fighting with this code for days! Thanks
3
2335
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 hour" Can anyone kindly help me ?
0
9722
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10644
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10379
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10124
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6882
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5550
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5690
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4334
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3863
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.