Index: branches/5.1.x/core/units/forms/forms_eh.php =================================================================== diff -u -N -r12657 -r13086 --- branches/5.1.x/core/units/forms/forms_eh.php (.../forms_eh.php) (revision 12657) +++ branches/5.1.x/core/units/forms/forms_eh.php (.../forms_eh.php) (revision 13086) @@ -1,6 +1,6 @@ Conn->Query('DELETE FROM '.TABLE_PREFIX.'Cache WHERE VarName = "sections_parsed"'); - $this->Application->StoreVar('RefreshStructureTree', 1); + + if ($event->status == erSUCCESS) { + $this->Conn->Query('DELETE FROM '.TABLE_PREFIX.'Cache WHERE VarName = "sections_parsed"'); + $this->Application->StoreVar('RefreshStructureTree', 1); + } } /**