mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-11 18:16:24 +05:00
Fix for ApierV1.SetRatingProfile API which was reloading rating plan
This commit is contained in:
@@ -435,8 +435,6 @@ func (self *ApierV1) SetRatingProfile(attrs AttrSetRatingProfile, reply *string)
|
||||
if err := self.RatingDb.SetRatingProfile(rpfl, utils.NonTransactional); err != nil {
|
||||
return utils.NewErrServerError(err)
|
||||
}
|
||||
cache.RemPrefixKey(utils.RATING_PLAN_PREFIX, true, "")
|
||||
self.RatingDb.PreloadCacheForPrefix(utils.RATING_PLAN_PREFIX)
|
||||
*reply = OK
|
||||
return nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user