Skip to content
Snippets Groups Projects
Commit 83982a8c authored by Pierre H. Lehnen's avatar Pierre H. Lehnen Committed by Rodrigo Nascimento
Browse files

Stop caching private settings (#10625)

parent 2117624b
No related branches found
No related tags found
No related merge requests found
......@@ -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();
......
......@@ -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();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment