@tiledesk/tiledesk-server 2.4.19 → 2.4.20
Sign up to get free protection for your applications and to get access to all the features.
package/package.json
CHANGED
@@ -31,13 +31,13 @@
|
|
31
31
|
});
|
32
32
|
|
33
33
|
// TODO COMMENTA NON USATO
|
34
|
-
key = "projects:query:*";
|
35
|
-
winston.verbose("Deleting cache for project.create with key: " + key);
|
36
|
-
client.del(key, function (err, reply) {
|
37
|
-
|
38
|
-
|
34
|
+
// key = "projects:query:*";
|
35
|
+
// winston.verbose("Deleting cache for project.create with key: " + key);
|
36
|
+
// client.del(key, function (err, reply) {
|
37
|
+
// winston.verbose("Deleted cache for project.create",{err:err});
|
38
|
+
// winston.debug("Deleted cache for project.create",reply);
|
39
39
|
|
40
|
-
});
|
40
|
+
// });
|
41
41
|
});
|
42
42
|
});
|
43
43
|
|
@@ -52,12 +52,12 @@
|
|
52
52
|
});
|
53
53
|
|
54
54
|
// TODO COMMENTA NON USATO
|
55
|
-
key = "projects:query:*";
|
56
|
-
winston.verbose("Deleting cache for project.update with key: " + key);
|
57
|
-
client.del(key, function (err, reply) {
|
58
|
-
|
59
|
-
|
60
|
-
});
|
55
|
+
// key = "projects:query:*";
|
56
|
+
// winston.verbose("Deleting cache for project.update with key: " + key);
|
57
|
+
// client.del(key, function (err, reply) {
|
58
|
+
// winston.debug("Deleted cache for project.update",reply);
|
59
|
+
// winston.verbose("Deleted cache for project.update",{err:err});
|
60
|
+
// });
|
61
61
|
|
62
62
|
// TODO invalidate widgets here
|
63
63
|
winston.verbose("Deleting widgets cache for project.update");
|
@@ -76,12 +76,12 @@
|
|
76
76
|
});
|
77
77
|
|
78
78
|
// TODO COMMENTA NON USATO
|
79
|
-
key = "projects:query:*";
|
80
|
-
winston.verbose("Deleting cache for project.create with key: " + key);
|
81
|
-
client.del(key, function (err, reply) {
|
82
|
-
|
83
|
-
|
84
|
-
});
|
79
|
+
// key = "projects:query:*";
|
80
|
+
// winston.verbose("Deleting cache for project.create with key: " + key);
|
81
|
+
// client.del(key, function (err, reply) {
|
82
|
+
// winston.debug("Deleted cache for project.create",reply);
|
83
|
+
// winston.verbose("Deleted cache for project.create",{err:err});
|
84
|
+
// });
|
85
85
|
});
|
86
86
|
|
87
87
|
// TODO invalidate widgets here
|
@@ -100,12 +100,12 @@
|
|
100
100
|
});
|
101
101
|
|
102
102
|
// TODO COMMENTA NON USATO
|
103
|
-
key = "projects:query:*";
|
104
|
-
winston.verbose("Deleting cache for project.downgrade with key: " + key);
|
105
|
-
client.del(key, function (err, reply) {
|
106
|
-
|
107
|
-
|
108
|
-
});
|
103
|
+
// key = "projects:query:*";
|
104
|
+
// winston.verbose("Deleting cache for project.downgrade with key: " + key);
|
105
|
+
// client.del(key, function (err, reply) {
|
106
|
+
// winston.debug("Deleted cache for project.downgrade",reply);
|
107
|
+
// winston.verbose("Deleted cache for project.downgrade",{err:err});
|
108
|
+
// });
|
109
109
|
|
110
110
|
// TODO invalidate widgets here
|
111
111
|
winston.verbose("Deleting widgets cache for project.downgrade");
|
@@ -330,12 +330,12 @@
|
|
330
330
|
});
|
331
331
|
|
332
332
|
// TODO COMMENTA NON USATO
|
333
|
-
key = request.id_project+":requests:query:*";
|
334
|
-
winston.verbose("Deleting cache for request.create with key: " + key);
|
335
|
-
client.del(key, function (err, reply) {
|
336
|
-
|
337
|
-
|
338
|
-
});
|
333
|
+
// key = request.id_project+":requests:query:*";
|
334
|
+
// winston.verbose("Deleting cache for request.create with key: " + key);
|
335
|
+
// client.del(key, function (err, reply) {
|
336
|
+
// winston.debug("Deleted cache for request.create",reply);
|
337
|
+
// winston.verbose("Deleted cache for request.create",{err:err});
|
338
|
+
// });
|
339
339
|
|
340
340
|
});
|
341
341
|
});
|
@@ -359,12 +359,12 @@
|
|
359
359
|
});
|
360
360
|
|
361
361
|
// TODO COMMENTA NON USATO
|
362
|
-
key = request.id_project+":requests:query:*";
|
363
|
-
winston.verbose("Deleting cache for request.update with key: " + key);
|
364
|
-
client.del(key, function (err, reply) {
|
365
|
-
|
366
|
-
|
367
|
-
});
|
362
|
+
// key = request.id_project+":requests:query:*";
|
363
|
+
// winston.verbose("Deleting cache for request.update with key: " + key);
|
364
|
+
// client.del(key, function (err, reply) {
|
365
|
+
// winston.debug("Deleted cache for request.update",reply);
|
366
|
+
// winston.verbose("Deleted cache for request.update",{err:err});
|
367
|
+
// });
|
368
368
|
|
369
369
|
invalidatRequestSimple(client, request.id_project, request.id, request.request_id)
|
370
370
|
|
@@ -389,12 +389,12 @@
|
|
389
389
|
});
|
390
390
|
|
391
391
|
// TODO COMMENTA NON USATO
|
392
|
-
key = request.id_project+":requests:query:*";
|
393
|
-
winston.verbose("Deleting cache for request.create with key: " + key);
|
394
|
-
client.del(key, function (err, reply) {
|
395
|
-
|
396
|
-
|
397
|
-
});
|
392
|
+
// key = request.id_project+":requests:query:*";
|
393
|
+
// winston.verbose("Deleting cache for request.create with key: " + key);
|
394
|
+
// client.del(key, function (err, reply) {
|
395
|
+
// winston.debug("Deleted cache for request.close",reply);
|
396
|
+
// winston.verbose("Deleted cache for request.close",{err:err});
|
397
|
+
// });
|
398
398
|
|
399
399
|
invalidatRequestSimple(client, request.id_project, request.id, request.request_id)
|
400
400
|
|
@@ -549,12 +549,12 @@
|
|
549
549
|
});
|
550
550
|
|
551
551
|
// TODO COMMENTA NON USATO
|
552
|
-
key = department.id_project+":departments:query:*";
|
553
|
-
winston.verbose("Deleting cache for department.create with key: " + key);
|
554
|
-
client.del(key, function (err, reply) {
|
555
|
-
|
556
|
-
|
557
|
-
});
|
552
|
+
// key = department.id_project+":departments:query:*";
|
553
|
+
// winston.verbose("Deleting cache for department.create with key: " + key);
|
554
|
+
// client.del(key, function (err, reply) {
|
555
|
+
// winston.debug("Deleted cache for department.create",reply);
|
556
|
+
// winston.verbose("Deleted cache for department.create",{err:err});
|
557
|
+
// });
|
558
558
|
|
559
559
|
// TODO invalidate widgets here
|
560
560
|
winston.verbose("Deleting widgets cache for department.create");
|
@@ -574,12 +574,12 @@
|
|
574
574
|
});
|
575
575
|
|
576
576
|
// TODO COMMENTA NON USATO
|
577
|
-
key = department.id_project+":departments:query:*";
|
578
|
-
winston.verbose("Deleting cache for department.update with key: " + key);
|
579
|
-
client.del(key, function (err, reply) {
|
580
|
-
|
581
|
-
|
582
|
-
});
|
577
|
+
// key = department.id_project+":departments:query:*";
|
578
|
+
// winston.verbose("Deleting cache for department.update with key: " + key);
|
579
|
+
// client.del(key, function (err, reply) {
|
580
|
+
// winston.debug("Deleted cache for department.update",reply);
|
581
|
+
// winston.verbose("Deleted cache for department.update",{err:err});
|
582
|
+
// });
|
583
583
|
|
584
584
|
// TODO invalidate widgets here
|
585
585
|
winston.verbose("Deleting widgets cache for department.update");
|
@@ -598,12 +598,12 @@
|
|
598
598
|
});
|
599
599
|
|
600
600
|
// TODO COMMENTA NON USATO
|
601
|
-
key = department.id_project+":departments:query:*";
|
602
|
-
winston.verbose("Deleting cache for department.delete with key: " + key);
|
603
|
-
client.del(key, function (err, reply) {
|
604
|
-
|
605
|
-
|
606
|
-
});
|
601
|
+
// key = department.id_project+":departments:query:*";
|
602
|
+
// winston.verbose("Deleting cache for department.delete with key: " + key);
|
603
|
+
// client.del(key, function (err, reply) {
|
604
|
+
// winston.debug("Deleted cache for department.delete",reply);
|
605
|
+
// winston.verbose("Deleted cache for department.delete",{err:err});
|
606
|
+
// });
|
607
607
|
|
608
608
|
// TODO invalidate widgets here
|
609
609
|
winston.verbose("Deleting widgets cache for department.delete");
|
@@ -616,12 +616,12 @@
|
|
616
616
|
setImmediate(() => {
|
617
617
|
|
618
618
|
// TODO COMMENTA NON USATO
|
619
|
-
var key = label.id_project+":labels:query:*";
|
620
|
-
winston.verbose("Deleting cache for label.create with key: " + key);
|
621
|
-
client.del(key, function (err, reply) {
|
622
|
-
|
623
|
-
|
624
|
-
});
|
619
|
+
// var key = label.id_project+":labels:query:*";
|
620
|
+
// winston.verbose("Deleting cache for label.create with key: " + key);
|
621
|
+
// client.del(key, function (err, reply) {
|
622
|
+
// winston.debug("Deleted cache for label.create",reply);
|
623
|
+
// winston.verbose("Deleted cache for label.create",{err:err});
|
624
|
+
// });
|
625
625
|
});
|
626
626
|
});
|
627
627
|
|
@@ -631,12 +631,12 @@
|
|
631
631
|
setImmediate(() => {
|
632
632
|
|
633
633
|
// TODO COMMENTA NON USATO
|
634
|
-
var key = label.id_project+":labels:query:*";
|
635
|
-
winston.verbose("Deleting cache for label.update with key: " + key);
|
636
|
-
client.del(key, function (err, reply) {
|
637
|
-
|
638
|
-
|
639
|
-
});
|
634
|
+
// var key = label.id_project+":labels:query:*";
|
635
|
+
// winston.verbose("Deleting cache for label.update with key: " + key);
|
636
|
+
// client.del(key, function (err, reply) {
|
637
|
+
// winston.debug("Deleted cache for label.update",reply);
|
638
|
+
// winston.verbose("Deleted cache for label.update",{err:err});
|
639
|
+
// });
|
640
640
|
});
|
641
641
|
});
|
642
642
|
|
@@ -645,12 +645,12 @@
|
|
645
645
|
setImmediate(() => {
|
646
646
|
|
647
647
|
// TODO COMMENTA NON USATO
|
648
|
-
var key = label.id_project+":labels:query:*";
|
649
|
-
winston.verbose("Deleting cache for label.clone with key: " + key);
|
650
|
-
client.del(key, function (err, reply) {
|
651
|
-
|
652
|
-
|
653
|
-
});
|
648
|
+
// var key = label.id_project+":labels:query:*";
|
649
|
+
// winston.verbose("Deleting cache for label.clone with key: " + key);
|
650
|
+
// client.del(key, function (err, reply) {
|
651
|
+
// winston.debug("Deleted cache for label.clone",reply);
|
652
|
+
// winston.verbose("Deleted cache for label.clone",{err:err});
|
653
|
+
// });
|
654
654
|
});
|
655
655
|
});
|
656
656
|
|
@@ -659,12 +659,12 @@
|
|
659
659
|
setImmediate(() => {
|
660
660
|
|
661
661
|
// TODO COMMENTA NON USATO
|
662
|
-
var key = label.id_project+":labels:query:*";
|
663
|
-
winston.verbose("Deleting cache for label.delete with key: " + key);
|
664
|
-
client.del(key, function (err, reply) {
|
665
|
-
|
666
|
-
|
667
|
-
});
|
662
|
+
// var key = label.id_project+":labels:query:*";
|
663
|
+
// winston.verbose("Deleting cache for label.delete with key: " + key);
|
664
|
+
// client.del(key, function (err, reply) {
|
665
|
+
// winston.debug("Deleted cache for label.delete",reply);
|
666
|
+
// winston.verbose("Deleted cache for label.delete",{err:err});
|
667
|
+
// });
|
668
668
|
});
|
669
669
|
});
|
670
670
|
|
@@ -676,6 +676,7 @@
|
|
676
676
|
setImmediate(() => {
|
677
677
|
|
678
678
|
//TODO i think you must clone trigger and remove .secret before caching
|
679
|
+
// elimina delete con * e fai cancellazione puntuale
|
679
680
|
var key =trigger.id_project+":subscriptions:*";
|
680
681
|
winston.verbose("Deleting cache for subscription.create with key: " + key);
|
681
682
|
client.del(key, function (err, reply) {
|
@@ -687,6 +688,7 @@
|
|
687
688
|
|
688
689
|
subscriptionEvent.on('subscription.update', function(trigger) {
|
689
690
|
setImmediate(() => {
|
691
|
+
// elimina delete con * e fai cancellazione puntuale
|
690
692
|
var key =trigger.id_project+":subscriptions:*";
|
691
693
|
winston.verbose("Deleting cache for subscription.update with key: " + key);
|
692
694
|
client.del(key, function (err, reply) {
|
@@ -698,6 +700,7 @@
|
|
698
700
|
|
699
701
|
subscriptionEvent.on("subscription.delete", function(trigger) {
|
700
702
|
setImmediate(() => {
|
703
|
+
// elimina delete con * e fai cancellazione puntuale
|
701
704
|
var key =trigger.id_project+":subscriptions:*";
|
702
705
|
winston.verbose("Deleting cache for subscription.delete with key: " + key);
|
703
706
|
client.del(key, function (err, reply) {
|
@@ -713,7 +716,7 @@
|
|
713
716
|
if (triggerEventEmitter) {
|
714
717
|
triggerEventEmitter.on('trigger.create', function(trigger) {
|
715
718
|
setImmediate(() => {
|
716
|
-
|
719
|
+
// elimina delete con * e fai cancellazione puntuale
|
717
720
|
var key =trigger.id_project+":triggers:*";
|
718
721
|
winston.verbose("Deleting cache for trigger.create with key: " + key);
|
719
722
|
client.del(key, function (err, reply) {
|
@@ -725,6 +728,7 @@
|
|
725
728
|
|
726
729
|
triggerEventEmitter.on('trigger.update', function(trigger) {
|
727
730
|
setImmediate(() => {
|
731
|
+
// elimina delete con * e fai cancellazione puntuale
|
728
732
|
var key =trigger.id_project+":triggers:*";
|
729
733
|
winston.verbose("Deleting cache for trigger.update with key: " + key);
|
730
734
|
client.del(key, function (err, reply) {
|
@@ -735,7 +739,8 @@
|
|
735
739
|
});
|
736
740
|
|
737
741
|
triggerEventEmitter.on("trigger.delete", function(trigger) {
|
738
|
-
setImmediate(() => {
|
742
|
+
setImmediate(() => {
|
743
|
+
// elimina delete con * e fai cancellazione puntuale
|
739
744
|
var key =trigger.id_project+":triggers:*";
|
740
745
|
winston.verbose("Deleting cache for trigger.delete with key: " + key);
|
741
746
|
client.del(key, function (err, reply) {
|