Monday, August 16, 2021

tempFolder in Azure for storing sitemap.xml files

It is recommended to keep the temp folder inside the website root. This is the default location.

It's set in Sitecore.Settings.Azure.config




<sc.variable name="tempFolder" value="/temp"/> 


protected string FilePath

        {

            get

            {

                string path = Path.Combine(TempFolder.Folder, "sitemap-" + this.CurrentSite.Name + ".xml");

                Log.Info("Sitemap xml path: " + path, this);

                return path;

            }

        }

No comments:

Post a Comment