PluginProbe
xSpeed Cache: AI-Powered Performance Hub with MCP, Caching & CDN / 1.3.2
xSpeed Cache: AI-Powered Performance Hub with MCP, Caching & CDN v1.3.2
1.3.3 1.3.2 1.3.1 1.3.0 1.2.4 trunk 1.0.0 1.0.1 1.0.2 1.0.3 1.0.4 1.0.5 1.0.6 1.0.7 1.0.8 1.0.9 1.1.0 1.1.1 1.1.2 1.1.3 1.1.4 1.1.5 1.1.6 1.1.7 1.1.8 All 29 releases
← All changes | includes/modules/BrowserCache/BrowserCacheModule.php +11 -10 1.2.41.3.2 View file →
@@ -28,11 +28,11 @@
28 28 public const VERSION = '1.0.0';
29 29
30 30 public function ui_metadata(): array {
31 31 return array(
32 - 'label' => 'Browser Cache',
32 + 'label' => __( 'Browser Cache', 'xspeed' ),
33 33 'icon' => 'Clock',
34 - 'description' => 'Tell browsers (and intermediate CDNs) how long to cache static assets and HTML.',
34 + 'description' => __( 'Tell browsers (and intermediate CDNs) how long to cache static assets and HTML.', 'xspeed' ),
35 35 );
36 36 }
37 37
38 38 public function settings_schema(): array {
@@ -39,10 +39,10 @@
39 39 return array(
40 40 'enabled' => array(
41 41 'type' => 'bool',
42 42 'default' => false,
43 - 'label' => 'Enable browser cache headers',
44 - 'description' => 'On Apache/LiteSpeed this writes Cache-Control + Expires rules into .htaccess. On nginx it just stores the settings — you paste the snippet into your server block manually.',
43 + 'label' => __( 'Enable browser cache headers', 'xspeed' ),
44 + 'description' => __( 'On Apache/LiteSpeed this writes Cache-Control + Expires rules into .htaccess. On nginx it just stores the settings — you paste the snippet into your server block manually.', 'xspeed' ),
45 45 ),
46 46 'asset_ttl' => array(
47 47 'type' => 'int',
48 48 'default' => Browser_Cache::DEFAULT_ASSET_TTL,
@@ -47,11 +47,11 @@
47 47 'type' => 'int',
48 48 'default' => Browser_Cache::DEFAULT_ASSET_TTL,
49 49 'min' => 0,
50 50 'max' => 31536000,
51 - 'label' => 'Static asset TTL (seconds)',
51 + 'label' => __( 'Static asset TTL (seconds)', 'xspeed' ),
52 52 'unit' => 'seconds',
53 - 'description' => 'Cache lifetime for CSS, JS, fonts, images. Defaults to 1 year + immutable (the industry-standard "fingerprinted assets never change" pattern).',
53 + 'description' => __( 'Cache lifetime for CSS, JS, fonts, images. Defaults to 1 year + immutable (the industry-standard "fingerprinted assets never change" pattern).', 'xspeed' ),
54 54 'dependsOn' => array( 'field' => 'enabled' ),
55 55 ),
56 56 'html_ttl' => array(
57 57 'type' => 'int',
@@ -57,11 +57,11 @@
57 57 'type' => 'int',
58 58 'default' => Browser_Cache::DEFAULT_HTML_TTL,
59 59 'min' => 0,
60 60 'max' => 31536000,
61 - 'label' => 'HTML TTL (seconds)',
61 + 'label' => __( 'HTML TTL (seconds)', 'xspeed' ),
62 62 'unit' => 'seconds',
63 - 'description' => 'Cache lifetime for the HTML document itself. Keep short (default 1h) so post edits roll out same-day.',
63 + 'description' => __( 'Cache lifetime for the HTML document itself. Keep short (default 1h) so post edits roll out same-day.', 'xspeed' ),
64 64 'dependsOn' => array( 'field' => 'enabled' ),
65 65 ),
66 66 );
67 67 }
@@ -172,10 +172,11 @@
172 172 }
173 173 }
174 174
175 175 /**
176 - * Cache-Control / Expires directives for the unified nginx
177 - * server-block snippet. Null when the module is disabled — no
176 + * Cache-Control directives for the unified nginx server-block
177 + * snippet. nginx sends no Expires — `expires off;` pins the block so
178 + * only the explicit `add_header` speaks (#259). Null when the module is disabled — no
178 179 * directives to install.
179 180 */
180 181 public function nginx_directives(): ?string {
181 182 $opts = $this->get_settings();