Quantcast
Channel: Lasse Bunk's weblog » Sitemaps
Viewing all articles
Browse latest Browse all 2

Sitemap Notifier: Ruby on Rails plugin for notifying search engines of changes to sitemap

$
0
0

Sitemap Notifier is a Ruby on Rails plugin that, when installed, automatically notifies Google, Bing, and Yahoo of changes to your models, i.e. changes to your sitemap. It also works in conjunction with the Dynamic Sitemaps plugin.

Installation

In Rails 3:

$ rails plugin install git://github.com/lassebunk/sitemap_notifier.git

Example

Start by generating initializer and route:

$ rails generate sitemap_notifier sitemap_notifier

In config/initializers/sitemap_notifier.rb:

# wait 10 minutes between notifications
SitemapNotifier::Notifier.delay = 600

# replace this with your own url
SitemapNotifier::Notifier.sitemap_url = "http://example.com/sitemap.xml"

After installation

After you install and configure the plugin, it’ll automatically notify Google, Bing, and Yahoo every time you update a model. After each notification, it’ll wait 10 minutes (by default) before notifying again. This is to ensure that for example a batch update won’t trigger an equal amount of notifications.


Viewing all articles
Browse latest Browse all 2

Trending Articles