added improved ApierV2 GetDestinations

This commit is contained in:
Radu Ioan Fericean
2016-05-06 13:29:49 +03:00
parent c73016e89d
commit 2f76d12f37
3 changed files with 32 additions and 61 deletions

View File

@@ -82,6 +82,7 @@ func CachedDestHasPrefix(destId, prefix string) bool {
}
func CleanStalePrefixes(destIds []string) {
utils.Logger.Info("Cleaning stale dest prefixes: " + utils.ToJSON(destIds))
prefixMap, err := cache2go.GetAllEntries(utils.DESTINATION_PREFIX)
if err != nil {
return