Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Fetch plugin config from replica (#9028)
Filip Owczarekbb724782436e
diff --git a/saleor/plugins/manager.py b/saleor/plugins/manager.pyindex f1aea93fe5..2fa32f6cbc 100644--- a/saleor/plugins/manager.py+++ b/saleor/plugins/manager.py@@ -127,7 +127,11 @@ class PluginsManager(PaymentInterface):def _get_db_plugin_configs(self):with opentracing.global_tracer().start_active_span("_get_db_plugin_configs"):- qs = PluginConfiguration.objects.all().prefetch_related("channel")+ qs = (+ PluginConfiguration.objects.all()+ .using(settings.DATABASE_CONNECTION_REPLICA_NAME)+ .prefetch_related("channel")+ )channel_configs = defaultdict(dict)global_configs = {}for db_plugin_config in qs: