Index: filter/dscache/ds.go |
diff --git a/filter/dscache/ds.go b/filter/dscache/ds.go |
index 36b308e4644e4ad7d7a2c0016ae04a31e311fded..910727fe7d4d1d7d294d0e15f01afffdfc5ec993 100644 |
--- a/filter/dscache/ds.go |
+++ b/filter/dscache/ds.go |
@@ -87,7 +87,8 @@ func (d *dsCache) GetMulti(keys []*ds.Key, metas ds.MultiMetaGetter, cb ds.GetMu |
if toSave != nil { |
if shouldSave { // save |
- expSecs := metas.GetMetaDefault(i, CacheExpirationMeta, CacheTimeSeconds).(int64) |
+ mg := metas.GetSingle(i) |
+ expSecs := ds.GetMetaDefault(mg, CacheExpirationMeta, CacheTimeSeconds).(int64) |
toSave.SetFlags(uint32(ItemHasData)) |
toSave.SetExpiration(time.Duration(expSecs) * time.Second) |
toSave.SetValue(data) |