Skip to content

Commit a4d287d

Browse files
committed
wording
1 parent f0c372c commit a4d287d

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

inc/admin/advanced-settings.php

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,7 @@ function adminAdvancedSettings()
88
** Section "Stream mode" **
99
**************************/
1010

11-
add_settings_section('crowdsec_admin_advanced_stream_mode', 'Stream mode vs Live mode', function () {
12-
echo "
13-
<p>With the stream mode, all decisions are retrieved in an asynchronous way, using <em>LAPI stream mode</em> feature
14-
<br>Advantages:<br>- Ultrashort latency<br>- IP verifications work even if LAPI is down.<br>
15-
Limits:<br>- If traffic is low, the cache refresh (new or deleted decisions since last time) can be late.
16-
<br>- A delay to take decisions into account is added.
17-
</p>";
11+
add_settings_section('crowdsec_admin_advanced_stream_mode', 'Communication method to the API', function () {
1812
}, 'crowdsec_advanced_settings');
1913

2014
// Field "crowdsec_stream_mode"
@@ -25,7 +19,10 @@ function adminAdvancedSettings()
2519
}, function () {
2620
// Stream mode just deactivated.
2721
unscheduleBlocklistRefresh();
28-
}, '');
22+
}, '
23+
<p>With the stream mode, every decision is retrieved in an asynchronous way. 3 advantages: <br>&nbsp;1) Inivisible latency when loading pages<br>&nbsp;2) The IP verifications works even if your CrowdSec is not reachable.<br>&nbsp;3) The API can never be overloaded by the WordPress traffic</p>
24+
<p>Note: This method has one limit: for maximum 60 seconds, all the new decisions may not be taken into account.</p>
25+
');
2926

3027
// Field "crowdsec_stream_mode_refresh_frequency"
3128
addFieldString('crowdsec_stream_mode_refresh_frequency', 'Resync decisions each', 'crowdsec_plugin_advanced_settings', 'crowdsec_advanced_settings', 'crowdsec_admin_advanced_cache', function ($input) {

0 commit comments

Comments
 (0)