Merge pull request #266 from alimy/pr-cache-index-fix

fixed cache index not expire in delete/add tweet error
pull/267/head
北野 - Michael Li 1 year ago committed by GitHub
commit ffe7b014d0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

Loading…
Cancel
Save