mirror of
https://github.com/wekan/wekan.git
synced 2026-02-16 21:18:06 +01:00
Fix: Frequent Subscriptions problem that make Excessive CPU usage.
Thanks to mfshiu ! Closes #1096, Closes wekan/wekan-mongodb#2
This commit is contained in:
parent
c609096700
commit
7e4b42e9b3
3 changed files with 11 additions and 7 deletions
|
|
@ -1,6 +1,13 @@
|
|||
const subManager = new SubsManager();
|
||||
|
||||
BlazeComponent.extendComponent({
|
||||
onCreated() {
|
||||
// Here is the only place that boards data needed, all boards data will stop sync when leaving this template.
|
||||
Meteor.subscribe('boards');
|
||||
Meteor.subscribe('setting');
|
||||
Meteor.subscribe('user-admin');
|
||||
},
|
||||
|
||||
boards() {
|
||||
return Boards.find({
|
||||
archived: false,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue