diff options
Diffstat (limited to 'store/sql_user_store.go')
-rw-r--r-- | store/sql_user_store.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/store/sql_user_store.go b/store/sql_user_store.go index c8c6714d8..3fddfb77d 100644 --- a/store/sql_user_store.go +++ b/store/sql_user_store.go @@ -35,6 +35,10 @@ type SqlUserStore struct { var profilesInChannelCache *utils.Cache = utils.NewLru(PROFILES_IN_CHANNEL_CACHE_SIZE) +func ClearUserCaches() { + profilesInChannelCache.Purge() +} + func NewSqlUserStore(sqlStore *SqlStore) UserStore { us := &SqlUserStore{sqlStore} |