It is always to have
cache in any web application. But while in development
stage, it is better to disable Sitecore cache and also browser cache to
avoid wasting time in recycling application pool or clearing cache from cache
admin. To disable it,
<!-- CACHING ENABLED
Determines if caching should be
enabled at all
Specify 'true' to enable caching
and 'false' to disable all caching
-->
<setting name="Caching.Enabled" value="true" />
<!-- DISABLE BROWSER CACHING
If true, all pages will have:
Cache-Control: no-cache, no-store
Pragma: no-cache
in the http header
-->
<setting name="DisableBrowserCaching" value="true" />
Both the setting should be true; former to avoid Sitecore
cache and latter to BrowserCache.
No comments:
Post a Comment