MM-57084: Use cache for GetAllProfiles (#26391)

UserStore.GetAllProfiles is a very frequent call. We cache it
when there are no options passed which is the default case.

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

```release-note
NONE
```
Этот коммит содержится в:
Agniva De Sarker
2024-03-11 10:34:20 +05:30
коммит произвёл GitHub
родитель 4fda7e6f34
Коммит bca5ab9a1f
7 изменённых файлов: 118 добавлений и 3 удалений

Просмотреть файл

@@ -8,7 +8,7 @@ export default {
PAGE_SIZE_MAXIMUM: 200,
LOGS_PAGE_SIZE_DEFAULT: 10000,
AUDITS_CHUNK_SIZE: 100,
PROFILE_CHUNK_SIZE: 100,
PROFILE_CHUNK_SIZE: 100, // WARN: Do not change this without changing the cache key on server side as well. See https://github.com/mattermost/mattermost/pull/26391.
CHANNELS_CHUNK_SIZE: 50,
TEAMS_CHUNK_SIZE: 50,
JOBS_CHUNK_SIZE: 50,