Skip to content

Commit

Permalink
+ Removing Output Cache Duration option from block properties as this…
Browse files Browse the repository at this point in the history
… functionality is not fully functional (Fixes #1096 ... kinda )
  • Loading branch information
azturner committed Sep 21, 2015
1 parent 8200e41 commit 4c3bade
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions RockWeb/Blocks/Core/BlockProperties.ascx.cs
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,10 @@ protected override void OnLoad( EventArgs e )
tbCssClass.Text = _block.CssClass;
cePreHtml.Text = _block.PreHtml;
cePostHtml.Text = _block.PostHtml;
tbCacheDuration.Text = _block.OutputCacheDuration.ToString();

// Hide the Cache duration block for now;
tbCacheDuration.Visible = false;
//tbCacheDuration.Text = _block.OutputCacheDuration.ToString();
}

base.OnLoad( e );
Expand Down Expand Up @@ -187,7 +190,7 @@ protected void masterPage_OnSave( object sender, EventArgs e )
block.CssClass = tbCssClass.Text;
block.PreHtml = cePreHtml.Text;
block.PostHtml = cePostHtml.Text;
block.OutputCacheDuration = Int32.Parse( tbCacheDuration.Text );
block.OutputCacheDuration = 0; //Int32.Parse( tbCacheDuration.Text );
rockContext.SaveChanges();

Rock.Attribute.Helper.GetEditValues( phAttributes, block );
Expand Down

0 comments on commit 4c3bade

Please sign in to comment.