|
@@ -89,6 +89,10 @@ func (this *Modules) RegisterAction_ShopAttributesModify() *Action {
|
|
|
wrap.MsgError(err.Error())
|
|
|
return
|
|
|
}
|
|
|
+
|
|
|
+ // Delete products XML cache
|
|
|
+ wrap.RemoveProductXmlCacheFile()
|
|
|
+
|
|
|
wrap.Write(`window.location='/cp/shop/attributes-modify/` + utils.Int64ToStr(lastID) + `/';`)
|
|
|
} else {
|
|
|
if err := wrap.DB.Transaction(func(tx *wrapper.Tx) error {
|
|
@@ -215,6 +219,10 @@ func (this *Modules) RegisterAction_ShopAttributesModify() *Action {
|
|
|
wrap.MsgError(err.Error())
|
|
|
return
|
|
|
}
|
|
|
+
|
|
|
+ // Delete products XML cache
|
|
|
+ wrap.RemoveProductXmlCacheFile()
|
|
|
+
|
|
|
wrap.Write(`window.location='/cp/shop/attributes-modify/` + pf_id + `/';`)
|
|
|
}
|
|
|
})
|