[SmartCrawl] Flush permalinks when creating a sitemap automatically

When creating a sitemap with SmartCrawl, initially there may be a 404 error due to permalinks not being flushed. I’d like to suggest adding an automatic flushing when sitemap is created to avoid that.