Makes sure preview is not using cached versions of any macro

This commit is contained in:
netaddicts
2013-01-24 11:00:15 -01:00
parent cc5ca0b5fe
commit d5bde0d8df

View File

@@ -311,7 +311,7 @@ namespace umbraco
Model.CacheIdentifier = GetCacheIdentifier(Model, pageElements, pageId);
if (Model.CacheDuration > 0)
if (!UmbracoContext.Current.InPreviewMode && Model.CacheDuration > 0)
{
if (cacheMacroAsString(Model))
{