It seems that my Items feed is not updating when new items are
inserted with the following code:
function postItem($sessionToken,$row) {
global $itemsFeedURL;
$client = Zend_Gdata_AuthSub::getHttpClient($sessionToken);
$gdata = new Zend_Gdata($client);
$response = $gdata->post(buildNewEntry($row)->saveXML(),
$itemsFeedURL);
try {
$feed = $gdata->getFeed($itemsFeedURL . "?");
if($feed->count() > 0) {
$counter = 1;
foreach ($feed as $feed_entry) {
if($counter == $feed->count()) {
$link_list = $feed_entry->link();
$href = $link_list[0]->getAttribute('href');
$title = $feed_entry->title();
echo "<a href=\"".$href."\">".$title."</a>";
}else{
$counter++;
}
}
}
} catch (Exception $e) {
echo "FAILED TRY/CATCH:".$e;//DEBUG
}
return $response;
}
I double checked this with a variation of the PHP sample code that
previously worked flawlessly, and when a new item is added it doesn't
seem to show up there either. Is this a planned outage, or should I be
concerned?