add prefix for scheduler apl cache

This commit is contained in:
Radu Ioan Fericean
2015-11-10 14:33:28 +02:00
parent 87a2da8c6c
commit d5084fc46c

View File

@@ -118,7 +118,7 @@ func (s *Scheduler) LoadActionPlans(storage engine.RatingStorage) {
if toBeSaved {
engine.Guardian.Guard(func() (interface{}, error) {
storage.SetActionPlans(key, newApls)
storage.CacheRatingPrefixValues(map[string][]string{utils.ACTION_PLAN_PREFIX: []string{key}})
storage.CacheRatingPrefixValues(map[string][]string{utils.ACTION_PLAN_PREFIX: []string{utils.ACTION_PLAN_PREFIX + key}})
return 0, nil
}, 0, utils.ACTION_PLAN_PREFIX)
}