MM-60413: Fix issues due to incorrect cache provider (#28181)

We were using a mock cache provider which mixed up LRU caches
with each other. This led to incorrect unmarshalling method calls.

We fix this by using the real cache provider.

https://mattermost.atlassian.net/browse/MM-60413

```release-note
NONE
```
Этот коммит содержится в:
Agniva De Sarker
2024-09-17 09:37:54 +05:30
коммит произвёл GitHub
родитель 1909206e16
Коммит f18323980f
5 изменённых файлов: 8 добавлений и 24 удалений

5
server/platform/services/cache/lru.go поставляемый
Просмотреть файл

@@ -220,11 +220,6 @@ func (l *LRU) get(key string, value any) error {
_, err := u.UnmarshalMsg(val)
*v = &u
return err
case *map[string]*model.User:
var u model.UserMap
_, err := u.UnmarshalMsg(val)
*v = u
return err
}
// Slow path for other structs.