I am using feedburner to publish my feed.
I have a table called ‘Event’ which has created_on and updated_on
columns
besides other attributes. Some of the attributes are disclosed through
RSS.
Once the event is created, RSS feed can pick up those events.
However after a while I update a column which is not disclosed on the
feed.
In the process the column updated_on also gets update. Once again I
update a
column that is not disclosed on the rss feed and is not used to
determine
which events to be shown.
Feedburner somehows picks up the information that I have updated the
feed
and re delivers it even though I don’t want it to redeliver since the
content has not changed.
Any one has encountered this kind of issue before.
Given below is xml feed file that I use.
xml.instruct! :xnl, :version => “1.0”, :encoding => ‘UTF-8’
xml.rss “version” => “2.0”, “xmlns:dc” =>
“DCMI: DCMI Metadata Terms”
do
xml.channel do
xml.title “#{@city.name} Events - EventsInIndia.com”
xml.link url_for( :only_path => false,:controller =>
‘ievents’,:action
=> ‘list’, :type => ‘up’, :cid => @city.id)
xml.description “List of events in #{@city.name}”
xml.pubDate CGI.rfc1123_date(@events.first.created_on) if
@events.any?
xml.image do
xml.url "http://www.eventsinindia.com/images/eii_logo3.png"
xml.link "http://eventsinindia.com/"
xml.title "EventsInIndia.com"
end
xml.language "en-us"
xml.copyright "Copyright 2006-2007 www.EventsInIndia.com"
xml.docs "http://blogs.law.harvard.edu/tech/rss"
@events.each do |event|
xml.item do
xml.title event.name
xml.link eventid_url(event.id)
xml.description event_desc_for_feed(event)
xml.comments eventid_url(event.id)
xml.pubDate CGI.rfc1123_date(event.created_on)
xml.author "[email protected] (#{event.user.name})"
xml.guid eventid_url(event.id)
end
end
end
end