diff --git a/docs/configuration/settings.rst b/docs/configuration/settings.rst index 46882e8a..1ec508a8 100644 --- a/docs/configuration/settings.rst +++ b/docs/configuration/settings.rst @@ -198,6 +198,33 @@ The optimal for Contact event scheduler settings allow you to configure the defa * **Fetch Interactions From** - Select the time frame for fetching interaction data. This determines how far back to look for interactions. * **Interaction Fetch Limit** - Set the maximum number of interactions of each type - for example: Page hits, Email reads, Form submits - to retrieve for timing optimization. +.. vale off + +Advanced Campaign performance settings +====================================== + +.. vale on + +Mautic provides additional performance-related configuration parameters for Campaigns that you must configure by editing the ``config/local.php`` file directly. These settings help you balance UI responsiveness against database load on high-volume instances. + +* ``campaign_event_cache_ttl`` - Controls how long Mautic caches Campaign event statistics - such as execution counts shown in the Campaign builder - before refreshing them from the database. The default is ``600`` seconds, which is 10 minutes. Lower values provide fresher statistics in the UI but increase the number of database queries. Higher values reduce database load but delay the appearance of new executions in the UI. Set to ``0`` to turn off caching entirely. + + To configure this setting, you can add or modify the parameter in your ``config/local.php`` file: + + .. code-block:: php + + 'campaign_event_cache_ttl' => 600, // seconds + + .. note:: + + To use this setting, you must enable Doctrine result caching in your Mautic instance. + +* ``campaign_contact_count_cache_ttl`` - Controls how long Mautic caches Campaign Contact counts before refreshing them from the database. The default is ``43200`` seconds, which is 12 hours. Adjust this value if you need Campaign Contact counts to update more frequently. + + .. code-block:: php + + 'campaign_contact_count_cache_ttl' => 43200, // seconds + Email settings **************