Skip to content

Commit 823018e

Browse files
committed
Further iterate on the warning and description
1 parent 538bcc7 commit 823018e

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

plugins/speculation-rules/settings.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ function plsr_get_field_description( string $field ): string {
7171
'eagerness' => __( 'The eagerness setting defines the heuristics based on which the loading is triggered. "Eager" will have the minimum delay to start speculative loads, "Conservative" increases the chance that only URLs the user actually navigates to are loaded.', 'speculation-rules' ),
7272
'authentication' => sprintf(
7373
/* translators: %s: URL to persistent object cache documentation */
74-
__( 'Only unauthenticated pages are typically served from cache. So in order to reduce load on the server, speculative loading is not enabled by default for logged-in users. If your server can handle the additional load, you can opt in to speculative loading for all logged-in users or just administrator users only. For optimal performance when enabling authenticated user support, ensure you have a <a href="%s" target="_blank">persistent object cache</a> configured. This only applies to pages on frontend; admin screens remain excluded.', 'speculation-rules' ),
74+
__( 'Only unauthenticated pages are typically served from cache. So in order to reduce load on the server, speculative loading is not enabled by default for logged-in users. If your server can handle the additional load, you can opt in to speculative loading for all logged-in users or just administrator users only. For optimal performance, regardless of the user authentication status but <em>especially</em> when logged-in, ensure you have a <a href="%s" target="_blank">persistent object cache</a> configured. This only applies to pages on the frontend; admin screens remain excluded.', 'speculation-rules' ),
7575
'https://developer.wordpress.org/advanced-administration/performance/optimization/#object-caching'
7676
),
7777
);
@@ -311,7 +311,7 @@ function plsr_render_settings_field( array $args ): void {
311311
echo wp_kses(
312312
sprintf(
313313
/* translators: %s: URL to persistent object cache documentation */
314-
__( 'Enabling speculative loading for authenticated users without a persistent object cache may significantly increase server load. Consider setting up a <a href="%s" target="_blank">persistent object cache</a> before enabling this feature for logged-in users.', 'speculation-rules' ),
314+
__( 'Enabling speculative loading for authenticated users may significantly increase the server load. Consider setting up a <a href="%s" target="_blank">persistent object cache</a> before enabling this feature for logged-in users.', 'speculation-rules' ),
315315
'https://developer.wordpress.org/advanced-administration/performance/optimization/#object-caching'
316316
),
317317
array(
@@ -331,10 +331,11 @@ function plsr_render_settings_field( array $args ): void {
331331
echo wp_kses(
332332
$args['description'],
333333
array(
334-
'a' => array(
334+
'a' => array(
335335
'href' => array(),
336336
'target' => array(),
337337
),
338+
'em' => array(),
338339
)
339340
);
340341
?>

0 commit comments

Comments
 (0)