From fdf55aee88ad12c1bfbedcafebaea285aef313c2 Mon Sep 17 00:00:00 2001 From: Mario Visic Date: Thu, 25 Aug 2011 22:11:57 +0800 Subject: [PATCH] Do not render twice for cached pages. --- lib/locomotive/render.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/locomotive/render.rb b/lib/locomotive/render.rb index 0e488e98..c8294293 100644 --- a/lib/locomotive/render.rb +++ b/lib/locomotive/render.rb @@ -103,7 +103,7 @@ module Locomotive end end - render :text => output, :layout => false, :status => page_status + render :text => output, :layout => false, :status => page_status unless performed? end def not_found_page