 |
? |
Author |
Message |
Morten
Joined: 17 May 2008
Posts: 9
|
Posted: Mon Aug 18, 2008 3:38 pm |

|
I use rssmesh to merge 10 differene delicious feeds into one to remove doublets. Works great - thanks.
Sometimes the updating is not working as expected according to the specified
$useOutputCaching = 1;
$outputCacheTTL = 120;
All "feedTTL" => "3600"
I suspect that the issue is caused by delicious kicking me because rssmesh don't take a short break (delay(1000);) between retrieving each of the 10 feeds.
On http://delicious.com/help/feeds delicious wrote:
"Since feeds at Delicious see quite a bit of high-volume use, it's not practical to offer immediately fresh results at all times. In particular, RSS feeds may not be updated more than twice an hour, and JSON feeds are likely to show a degree of staleness at times as well. Polling feeds more often will not yield better data, and may result in HTTP 503 Unavailable errors indicating either that your application has been blocked or the servers are otherwise temporarily throttling your requests."
How do I debug this problem?
Where in the code would you suggest that I insert a delay(1000) to please the delicious servers?
All the best
Morten
|
|
|
 |
 |
Tech Support
Joined: 27 Aug 2004
Posts: 2692
|
Posted: Mon Oct 27, 2008 12:50 pm |

|
Look for this block of code in the rssmesh.php file:
Code: |
? ? for ($inputCounter = 0; $inputCounter < count($feedList); $inputCounter++) {
? ? ? $rss_parserResults->itemLimit = $feedList[$inputCounter]["itemCount"];
? ? ? if (stristr($feedList[$inputCounter]["fileURL"], "http")) {
? ? ? ? $rss_parserResults->sourceFeedURL = trim($feedList[$inputCounter]["fileURL"]);
? ? ? } else {
? ? ? ? $rss_parserResults->sourceFeedURL = "";
? ? ? }
? ? ? $feedTTL = -1;
? ? ? if (isset($feedList[$inputCounter]["feedTTL"])) {
? ? ? ? $feedTTL = $feedList[$inputCounter]["feedTTL"];
? ? ? }
? ? ? if (($XML = FeedForAll_scripts_readFile($feedList[$inputCounter]["fileURL"], $useFopenURL, $allowCachingXMLFiles, $feedTTL)) === FALSE) {
? ? ? ? if ($ReadErrorString == "") {
? ? ? ? ? echo "Unable to open RSS Feed ".$feedList[$inputCounter]["fileURL"].", exiting\n";
? ? ? ? } else {
? ? ? ? ? echo "Unable to open RSS Feed ".$feedList[$inputCounter]["fileURL"]." with error $ReadErrorString, exiting\n";
? ? ? ? }
? ? ? ? continue;
? ? ? }
|
Try inserting this line after the line the begins with 'for':
|
_________________
Create RSS Feeds
Audio Recording and Editing
|
|
 |
 |
|
|
|