Sha256: 7a706d8ac2260287b0e56d5f8ac7dbb1b6925313891a762f289cd97e28857314

Contents?: true

Size: 323 Bytes

Versions: 1

Compression:

Stored size: 323 Bytes

Contents

namespace :sitemap do
  task :generate => :environment do
    start_time = Time.now
    puts "Generating sitemap..."
    DynamicSitemaps.generate_sitemap
    puts "Done generating sitemap in #{Time.now - start_time} seconds."

    if Rails.env.production?
      DynamicSitemaps::Pinger.ping_search_engines
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
dynamic_sitemaps-2.0.0.beta lib/dynamic_sitemaps/tasks/sitemap.rake