Skip to content

Commit

Permalink
Stop caching private settings (#10625)
Browse files Browse the repository at this point in the history
  • Loading branch information
Hudell authored and rodrigok committed May 18, 2018
1 parent 2117624 commit 83982a8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion packages/rocketchat-ui-admin/client/admin.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ Template.admin.onCreated(function() {
if (RocketChat.settings.cachedCollectionPrivate == null) {
RocketChat.settings.cachedCollectionPrivate = new RocketChat.CachedCollection({
name: 'private-settings',
eventType: 'onLogged'
eventType: 'onLogged',
useCache: false
});
RocketChat.settings.collectionPrivate = RocketChat.settings.cachedCollectionPrivate.collection;
RocketChat.settings.cachedCollectionPrivate.init();
Expand Down
3 changes: 2 additions & 1 deletion packages/rocketchat-ui-admin/client/adminFlex.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ Template.adminFlex.onCreated(function() {
if (RocketChat.settings.cachedCollectionPrivate == null) {
RocketChat.settings.cachedCollectionPrivate = new RocketChat.CachedCollection({
name: 'private-settings',
eventType: 'onLogged'
eventType: 'onLogged',
useCache: false
});
RocketChat.settings.collectionPrivate = RocketChat.settings.cachedCollectionPrivate.collection;
RocketChat.settings.cachedCollectionPrivate.init();
Expand Down

0 comments on commit 83982a8

Please sign in to comment.