 |
? |
Author |
Message |
gatekeeper
Joined: 11 Feb 2006
Posts: 5
|
Posted: Mon Feb 13, 2006 1:17 pm |

|
I recently migrated our production server to a dedicated server. After completing the migration, I realized that the RSS2HTML conversion is taking a very long time to complete its request. I thought maybe something had changed with the feeds I was using, but some of them are from my own server, so that ruled out that possibility.
I implemented the cache version after registering and find tha this has not helped performance either. If I take the call out to RSS2HTML off any page, the page displays very quickly (faster than any previous implementation of the server).
A good example of the delay I'm seeing is at http://www.timesharegateway.com/forums/index.php?page=travel%20news
or Travel News. The only thing this page does is try to run RSS2HTML using the cache version on this same server. It takes close to 15 seconds to display. I'm almost positive this problem has to do with a setting in either Apache or PHP, but I'm hoping you might have some insight on what settings might impact the overall performance of RSS2HTML or more globally, calls using "@include" since this is all that we're doing here. If there is a smarter way to invokde RSS2HTML, I'd be willing to try anything at this point.
Thank you.
|
_________________
Happy Trails,
GateKeeper
TimeshareGateway.com - a timeshare resource center
|
|
 
|
 |
gatekeeper
Joined: 11 Feb 2006
Posts: 5
|
Posted: Mon Feb 13, 2006 1:27 pm |

|
|
 
|
 |
gatekeeper
Joined: 11 Feb 2006
Posts: 5
|
Posted: Mon Feb 13, 2006 1:47 pm |

|
To further document this issue. Here is a URL using the public version of RSS2HTML but calls one of the feeds from this site. You will see that this comes up very quickly, implying the server is not the problem. I highly suspect the manner in which the routine is being invoked and that PHP simply doesn't like @include or some other aspect of the call.
http://scripts.rss2html.com/public/rss2html.php?TEMPLATE=http://www.timesharegateway.com/rss/forum-template.htm&XMLFILE=http://www.timesharegateway.com/forums/external.php?type=rss2
RSS Feed Example
I will also paste the code being used in the page reference above as the problem page:
ob_start();
@include("http://scripts.rss2html.com/public/rss2html.php?XMLFILE=http://news.search.yahoo.com/news/rss?p=travel&prssweb=Search&ei=UTF-8&fl=0&TEMPLATE=http://www.timesharegateway.com/forums/forum-newsfeed-template.htm&MAXITEMS=10");
$travelnews = ob_get_contents();
ob_end_clean();
eval('$home[$mods[\'modid\']][\'content\'] .= "' . fetch_template('adv_portal_travelnewsfeed') . '";');
?>
The major difference between these feeds is one is being called from within another script while the other is a direct URL in the browser, hence leading to my suspicion of how the script is being calle.
Thank you.
|
_________________
Happy Trails,
GateKeeper
TimeshareGateway.com - a timeshare resource center
|
|
 
|
 |
MacSupport
Joined: 24 Feb 2005
Posts: 648
|
Posted: Mon Feb 13, 2006 2:19 pm |

|
gatekeeper wrote: |
To further document this issue. Here is a URL using the public version of RSS2HTML but calls one of the feeds from this site. You will see that this comes up very quickly, implying the server is not the problem. I highly suspect the manner in which the routine is being invoked and that PHP simply doesn't like @include or some other aspect of the call.
http://scripts.rss2html.com/public/rss2html.php?TEMPLATE=http://www.timesharegateway.com/rss/forum-template.htm&XMLFILE=http://www.timesharegateway.com/forums/external.php?type=rss2
RSS Feed Example
I will also paste the code being used in the page reference above as the problem page:
ob_start();
@include("http://scripts.rss2html.com/public/rss2html.php?XMLFILE=http://news.search.yahoo.com/news/rss?p=travel&prssweb=Search&ei=UTF-8&fl=0&TEMPLATE=http://www.timesharegateway.com/forums/forum-newsfeed-template.htm&MAXITEMS=10");
$travelnews = ob_get_contents();
ob_end_clean();
eval('$home[$mods[\'modid\']][\'content\'] .= "' . fetch_template('adv_portal_travelnewsfeed') . '";');
?>
The major difference between these feeds is one is being called from within another script while the other is a direct URL in the browser, hence leading to my suspicion of how the script is being calle.
Thank you. |
The URL you are passing to rss2html.php is not valid, or is not what you want. Use the rss2html.php?buildURL capabiliity to construct proper URLs.
Jim
|
|
|
 
|
 |
|
|
|