fixed cache index expire in delete/add tweet error

pull/266/head
Michael Li 2 years ago
parent 1f653a5a92
commit 09c8654d19
No known key found for this signature in database

@ -181,7 +181,7 @@ func (s *cacheIndexSrv) deleteCacheByUserId(id int64, oneself bool) {
} }
for _, key := range allKeys { for _, key := range allKeys {
keyParts := strings.Split(key, ":") keyParts := strings.Split(key, ":")
if len(keyParts) > 2 && keyParts[0] == "index" { if len(keyParts) > 2 && keyParts[0] == _cacheIndexKey {
if _, ok := friendSet[keyParts[1]]; ok { if _, ok := friendSet[keyParts[1]]; ok {
keys = append(keys, key) keys = append(keys, key)
} }

Loading…
Cancel
Save