sitecore8 - Correct Place To Specify A Site's Caching Parameters In Sitecore? -
an "out-of-the-box" installation of sitecore creates following lines in web.config file:
<sites> <site name="shell" virtualfolder="/sitecore/shell" physicalfolder="/sitecore/shell" rootpath="/sitecore/content" startitem="/home" language="en" database="core" domain="sitecore" loginpage="/sitecore/login" content="master" contentstartitem="/home" enableworkflow="true" enableanalytics="false" analyticsdefinitions="content" xmlcontrolpage="/sitecore/shell/default.aspx" browsertitle="sitecore" htmlcachesize="10mb" registrycachesize="15mb" viewstatecachesize="1mb" xslcachesize="25mb" disablebrowsercaching="true" /> <site name="login" virtualfolder="/sitecore/login" physicalfolder="/sitecore/login" enableanalytics="false" database="core" domain="sitecore" disablexmlcontrols="true" /> <site name="admin" virtualfolder="/sitecore/admin" physicalfolder="/sitecore/admin" enableanalytics="false" enableworkflow="true" domain="sitecore" loginpage="/sitecore/admin/login.aspx" /> <site name="service" virtualfolder="/sitecore/service" physicalfolder="/sitecore/service" /> <site name="modules_shell" virtualfolder="/sitecore modules/shell" physicalfolder="/sitecore modules/shell" rootpath="/sitecore/content" startitem="/home" language="en" database="core" domain="sitecore" content="master" enableanalytics="false" enableworkflow="true" /> <site name="modules_website" virtualfolder="/sitecore modules/web" physicalfolder="/sitecore modules/web" rootpath="/sitecore/content" startitem="/home" language="en" database="web" domain="extranet" allowdebug="true" cachehtml="true" /> <site name="website" virtualfolder="/" physicalfolder="/" rootpath="/sitecore/content" startitem="/home" database="web" domain="extranet" allowdebug="true" cachehtml="true" htmlcachesize="50mb" registrycachesize="0" viewstatecachesize="0" xslcachesize="25mb" filtereditemscachesize="10mb" enablepreview="true" enablewebedit="true" enabledebugger="true" disableclientdata="false" cacherenderingparameters="true" renderingparameterscachesize="10mb" /> <site name="scheduler" enableanalytics="false" domain="sitecore" /> <site name="system" enableanalytics="false" domain="sitecore" /> <site name="publisher" domain="sitecore" enableanalytics="false" enableworkflow="true" /> </sites> <!-- cache sizes --> <cachesizes> <sites> <website> <html>50mb</html> <registry>0</registry> <viewstate>0</viewstate> <xsl>25mb</xsl> </website> </sites> </cachesizes>
the items under <cachesizes>
seem duplicative of attributes of <site>
entry website.
am misunderstanding this? 1 deprecated? 1 preferred?
from sitecore documentation:
if managed web site definition not specify cache size attributes, values within /configuration/sitecore/cachesizes/sites/* element named after managed web site in web.config file apply.
Comments
Post a Comment