From 82dc3cf6545e2bf0e4657e8d05bed0fbe242554d Mon Sep 17 00:00:00 2001 From: James Allen Date: Wed, 8 Oct 2014 12:39:36 +0100 Subject: [PATCH] Don't reload module views each request by default --- services/web/app/coffee/infrastructure/ExpressLocals.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/web/app/coffee/infrastructure/ExpressLocals.coffee b/services/web/app/coffee/infrastructure/ExpressLocals.coffee index 5be3774510..cb3e7837aa 100644 --- a/services/web/app/coffee/infrastructure/ExpressLocals.coffee +++ b/services/web/app/coffee/infrastructure/ExpressLocals.coffee @@ -148,7 +148,7 @@ module.exports = (app)-> next() app.use (req, res, next) -> - if !Settings.cacheModuleViewIncludes + if Settings.reloadModuleViewsOnEachRequest Modules.loadViewIncludes() res.locals.moduleIncludes = Modules.moduleIncludes next()