Index: branches/5.0.x/core/units/forms/forms_eh.php =================================================================== diff -u -r12734 -r12960 --- branches/5.0.x/core/units/forms/forms_eh.php (.../forms_eh.php) (revision 12734) +++ branches/5.0.x/core/units/forms/forms_eh.php (.../forms_eh.php) (revision 12960) @@ -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); + } } /**