diff --git a/RockWeb/Plugins/com_centralaz/Utility/LavaTester.ascx b/RockWeb/Plugins/com_centralaz/Utility/LavaTester.ascx index 8e1fb830df5..6497758b69e 100644 --- a/RockWeb/Plugins/com_centralaz/Utility/LavaTester.ascx +++ b/RockWeb/Plugins/com_centralaz/Utility/LavaTester.ascx @@ -113,6 +113,9 @@
nothing to display yet, try pressing the Test button ;)
+ + Lava processing took seconds. +

Lava Reference / Debug

diff --git a/RockWeb/Plugins/com_centralaz/Utility/LavaTester.ascx.cs b/RockWeb/Plugins/com_centralaz/Utility/LavaTester.ascx.cs index 9abaa3153cb..4df810205b8 100644 --- a/RockWeb/Plugins/com_centralaz/Utility/LavaTester.ascx.cs +++ b/RockWeb/Plugins/com_centralaz/Utility/LavaTester.ascx.cs @@ -748,7 +748,14 @@ protected void ddlRegistrations_SelectedIndexChanged( object sender, EventArgs e protected void ResolveLava() { string lava = ceLava.Text; + + var sw = System.Diagnostics.Stopwatch.StartNew(); litOutput.Text = lava.ResolveMergeFields( mergeFields, GetAttributeValue( "EnabledLavaCommands" ) ); + sw.Stop(); + + litProcessingTime.Text = ( sw.ElapsedMilliseconds / 1000d ).ToString(); + pnlProcessingTime.Visible = true; + if ( cbEnableDebug.Checked ) { litDebug.Text = mergeFields.lavaDebugInfo();