From c8f9b82724c109de07cad82a2d0dd223ae18bc18 Mon Sep 17 00:00:00 2001 From: Zohar Eshed Date: Thu, 5 Aug 2021 18:17:44 +0300 Subject: [PATCH] Load the services just once, instead of numerous times --- lib/hooks/moduleloader/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/hooks/moduleloader/index.js b/lib/hooks/moduleloader/index.js index c3e14302fa..b27fc5a850 100644 --- a/lib/hooks/moduleloader/index.js +++ b/lib/hooks/moduleloader/index.js @@ -340,7 +340,8 @@ module.exports = function(sails) { dirname : sails.config.paths.services, filter : /^(.+)\.(?:(?!md|txt).)+$/, depth : 1, - caseSensitive : true + caseSensitive : true, + force: false }, bindToSails(cb)); },