Do not load data if cache is disabled

pull/5371/head
Rodrigo Nascimento 9 years ago
parent 3494036cc4
commit 5b41fe2360
No known key found for this signature in database
GPG Key ID: 2C85B3AFE75D23F9
  1. 4
      packages/rocketchat-lib/server/models/_BaseCache.js

@ -410,6 +410,10 @@ class ModelsBaseCache extends EventEmitter {
}
load() {
if (this.model._useCache === false) {
return;
}
console.log('Will load cache for', this.collectionName);
this.emit('beforeload');
this.loaded = false;

Loading…
Cancel
Save