mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
* MM-21209: Use the LRU cache for UserStore.Get call too We already have userProfileByIdsCache to store the user profiles by Id. It just wasn't being used for the (*UserStore).Get method. We add a wrapper method in LocalCacheUserStore to intercept that call and check for the presence of the user Id in the cache. There is no need to add any code for invalidation as all of that is already present. * Fix nil check for rootstore * Fix TestUserStore test Added an invalidate call. The invalidation was being done from the app level. Hence we have to do it manually here for the test.