Sitecore: Edit Items without modifying Statistics.

Sometime we modify item via codebehind with a scheduler,.... but we don't want to update the standard field "updated" and "updated by" to not falsify the value in there.

For this case I found a intersting option in the EditContext method. Set the second parameter to false if you want to avoid updating statics.

  1. using (new EditContext(item, falsefalse))  
  2.         {  
  3.             item["Title"] = "new Title";  
  4.         }