Skip to content
Permalink
Browse files

Merge branch 'feature-PRESIDECMS-1624_full_page_caching_delayed_viewl…

…ets_on_404_and_401_pages' of https://github.com/choontat-pixl8/Preside-CMS into hotfix-10.10.82
  • Loading branch information...
DominicWatson committed Jul 9, 2019
2 parents 76d8da3 + 67d9b72 commit c26a5a482fb083968466ff5d340a426670918270
Showing with 12 additions and 2 deletions.
  1. +12 −2 system/coldboxModifications/RequestContextDecorator.cfc
@@ -953,14 +953,24 @@ component extends="coldbox.system.web.context.RequestContextDecorator" {
announceInterception( "onNotFound" );
getController().runEvent( "general.notFound" );
content reset=true type="text/html";header statusCode="404";
WriteOutput( getModel( "delayedStickerRendererService" ).renderDelayedStickerIncludes( getModel( "presideRenderer" ).renderLayout() ) );

var contentOutput = getModel( "presideRenderer" ).renderLayout();

contentOutput = getModel( "delayedStickerRendererService" ).renderDelayedStickerIncludes( contentOutput );
contentOutput = getModel( "delayedViewletRendererService" ).renderDelayedViewlets( contentOutput );
writeOutput( contentOutput );
abort;
}

public void function accessDenied( required string reason ) {
announceInterception( "onAccessDenied" , arguments );
getController().runEvent( event="general.accessDenied", eventArguments={ args=arguments }, private=true );
WriteOutput( getModel( "delayedStickerRendererService" ).renderDelayedStickerIncludes( getModel( "presideRenderer" ).renderLayout() ) );

var contentOutput = getModel( "presideRenderer" ).renderLayout();

contentOutput = getModel( "delayedStickerRendererService" ).renderDelayedStickerIncludes( contentOutput );
contentOutput = getModel( "delayedViewletRendererService" ).renderDelayedViewlets( contentOutput );
writeOutput( contentOutput );
abort;
}

0 comments on commit c26a5a4

Please sign in to comment.
You can’t perform that action at this time.