Quick Nav:  Online Store   |   Login | Register

Cache RSS Feeds (XML Files)

Rate this topic:

Please Register to post a reply. Another benefit of registration is the ability to subscribe to and recieve notifications of new posts.
AuthorMessages
ech01
<50 Posts
Posts:21


04/14/2008 10:14 AM  

Hi John!

I was wondering if pageblaster can cache some rss feeds. I have a monsterous amount of data coming in through some news feeds and I would like to store a local copy of the file for the module  to  syndicate, and then go out and update that local copy every five minutes. My first thought was to build a module to grab the feeds and store them. But can page blaster save me some time here? If so, how do I set it up?

Thanks!

John Mitchell
Posts:3033


04/14/2008 10:20 AM  

Do you want to pull feeds from another site, and cache them with PageBlaster? Or are you talking about caching an XML file on your site?

ech01
<50 Posts
Posts:21


04/14/2008 10:30 AM  

Pulling feeds. I thought I would write a program to fetch the feed and store a local copy in xml.

Thoughts?

John Mitchell
Posts:3033


04/14/2008 10:35 AM  
PageBlaster has a function to transform an XML feed, and then the entire page output will be cached.

This allows you to also cache the transformation so that you are not doing that every time.

The core XML feed module will also do the same thing if you set it to cache.
ech01
<50 Posts
Posts:21


04/14/2008 10:45 AM  

My problem seems to be timeout due to the amount of data coming in from the feed, which typically times out after 5 seconds. I don't think cacheing will solve any timeout issues. I'm using AdvancedNewsFeeds module from DNNMasters instead of the core news module. If you can think of anything PB can do, I'm all ears!

Thanks once again John for the great support.

John Mitchell
Posts:3033


04/14/2008 8:30 PM  

Hmmm, it shouldn't time out after just 5 seconds. 

If you want to try the PageBlaster transformXML function it is pretty easy.  Just create your own tag as a placeholder that you will replace with a search and replace rule.  So if you decided your tag is going to be {MyBigFeed} then you can add that token anywhere in the output of a page using the text/html module or a forum post or directly in a skin.

Then you will create a replacement rule to search for your token, and replace it with the TransformXML function like this:

Search For:

{MyBigFeed}

Replace - Respond With

[PB:TransformXML(xmlpath,xslpath)]

 

Now you can use the {MyBigFeed} token anywhere you want that content to show up.

 

ech01
<50 Posts
Posts:21


04/15/2008 8:30 AM  

Your right. 5 seconds was an exaggeration. Thanks for the help, John. I built a console application that just grabs and stores the xml file. i am intrigued by the option you presented. Very flexible.

I'm off to post a nav menu question!

Please Register to post a reply. Another benefit of registration is the ability to subscribe to and recieve notifications of new posts.
Forums >Snapsis Product Support >PageBlaster > Cache RSS Feeds (XML Files)



ActiveForums 3.7
Powered by: Snapsis Software