Did this article resolve your question/issue?



Generation of sitemap takes long time

« Go Back


TitleGeneration of sitemap takes long time
URL NameGeneration-of-sitemap-takes-long-time
Article Number000137554
EnvironmentProduct: Sitefinity
Version: 5.x, 6.x, 7.x, 8.x, 9.x, 10.x, 11.x
OS: All supported OS versions
Database: All supported Microsoft SQL Server versions
Question/Problem Description
The generation of sitemap takes a long time even though the site contains a small number of pages.

A site with 10 pages takes more than an hour.
Steps to Reproduce
Clarifying Information
Error Message
Defect/Enhancement Number
There are a lot of items with "Include in Sitemap" option enabled. During the Sitemap generation, Sitefinity goes through each item and checks if that item is placed on a page in order to generate the link for the detailed view of the item.
Disable the "Include in Sitemap" option in case there is no need to include them in the generated sitemap, as this will speed up the Sitemap generation.

The following code snippet disables the "Include in Sitemap" option for dynamic items of specific dynamic content type:
var items = dynamicModuleManager.GetDataItems(itemType).Where(i => !i.IncludeInSitemap);
foreach (var item in items)
item.IncludeInSitemap = false;

Last Modified Date2/8/2019 3:02 PM
Disclaimer The origins of the information on this site may be internal or external to Progress Software Corporation (“Progress”). Progress Software Corporation makes all reasonable efforts to verify this information. However, the information provided is for your information only. Progress Software Corporation makes no explicit or implied claims to the validity of this information.

Any sample code provided on this site is not supported under any Progress support program or service. The sample code is provided on an "AS IS" basis. Progress makes no warranties, express or implied, and disclaims all implied warranties including, without limitation, the implied warranties of merchantability or of fitness for a particular purpose. The entire risk arising out of the use or performance of the sample code is borne by the user. In no event shall Progress, its employees, or anyone else involved in the creation, production, or delivery of the code be liable for any damages whatsoever (including, without limitation, damages for loss of business profits, business interruption, loss of business information, or other pecuniary loss) arising out of the use of or inability to use the sample code, even if Progress has been advised of the possibility of such damages.