diff --git a/ghost/core/core/server/services/recommendations/RecommendationServiceWrapper.js b/ghost/core/core/server/services/recommendations/RecommendationServiceWrapper.js index 56372c495a..25c10a9343 100644 --- a/ghost/core/core/server/services/recommendations/RecommendationServiceWrapper.js +++ b/ghost/core/core/server/services/recommendations/RecommendationServiceWrapper.js @@ -39,11 +39,16 @@ class RecommendationServiceWrapper { incomingRecommendationService; init() { + const config = require('../../../shared/config'); + if (config.get('services:recommendations:enabled') === false) { + logging.info('[Recommendations] Service is disabled via config'); + return; + } + if (this.repository) { return; } - const config = require('../../../shared/config'); const urlUtils = require('../../../shared/url-utils'); const models = require('../../models'); const sentry = require('../../../shared/sentry');