Sitecore's HTML caching can be disabled through the cacheHtml
parameter on the website's definition. This is handy for a preview site that directly reads from the Master database.
Can the same be done for the GlassMapper cache?
Yes, use the glassCache
attribute. A value of anything other than false
means the cache will be enabled for that site: