[GH-13074] Migrate TermsOfServiceCache from store/sqlstore/terms_of_service.go to the new store/localcachelayer (#13205)
* migrated termsOfServiceCache from sqlstore to localcachelayer, and mocked store tests * revert gitignore local change * fixed caching in termsOfService Get, and added basic tests for termsOfServiceCache * added a test for cache save, and fixed call to Store tests * fixed GeLatest termsOfService from cache test * added license headers to terms_of_service cache files * using doStandardReadFromCache and doStandardAddToCache when reading and writing to cache * removed unused variable, termsOfServiceCacheName * added special key for the latest termsOfService value in termsOfServiceCache * updated license information on localcachelayer termsOfServiceCache files * fixed not updating latest termsOfServiceCache on Get by ID, and invalidating cache cluster on termsOfServiceCache save Co-authored-by: mattermod <mattermod@users.noreply.github.com>
Этот коммит содержится в:
коммит произвёл
Jesús Espino
родитель
f41c90657e
Коммит
de9a0197e2
@@ -37,6 +37,7 @@ const (
|
||||
CLUSTER_EVENT_CLEAR_SESSION_CACHE_FOR_ALL_USERS = "inv_all_user_sessions"
|
||||
CLUSTER_EVENT_INSTALL_PLUGIN = "install_plugin"
|
||||
CLUSTER_EVENT_REMOVE_PLUGIN = "remove_plugin"
|
||||
CLUSTER_EVENT_INVALIDATE_CACHE_FOR_TERMS_OF_SERVICE = "inv_terms_of_service"
|
||||
CLUSTER_EVENT_BUSY_STATE_CHANGED = "busy_state_change"
|
||||
|
||||
// SendTypes for ClusterMessage.
|
||||
|
||||
Ссылка в новой задаче
Block a user