Version Description
- Add x-aruba-cache header in site health
Download this release
Release Info
Developer | arubadev |
Plugin | Aruba HiSpeed Cache |
Version | 1.2.3 |
Comparing to | |
See all releases |
Code changes from version 1.2.2 to 1.2.3
- aruba-hispeed-cache.php +1 -1
- includes/ArubaHiSpeedCacheBootstrap.php +11 -0
- readme.txt +6 -6
aruba-hispeed-cache.php
CHANGED
@@ -12,7 +12,7 @@
|
|
12 |
*
|
13 |
* @wordpress-plugin
|
14 |
* Plugin Name: Aruba HiSpeed Cache
|
15 |
-
* Version: 1.2.
|
16 |
* Plugin URI: https://hosting.aruba.it/wordpress.aspx
|
17 |
* Description: Aruba HiSpeed Cache interfaces directly with an Aruba hosting platform's HiSpeed Cache service and automates its management.
|
18 |
* Author: Aruba.it
|
12 |
*
|
13 |
* @wordpress-plugin
|
14 |
* Plugin Name: Aruba HiSpeed Cache
|
15 |
+
* Version: 1.2.3
|
16 |
* Plugin URI: https://hosting.aruba.it/wordpress.aspx
|
17 |
* Description: Aruba HiSpeed Cache interfaces directly with an Aruba hosting platform's HiSpeed Cache service and automates its management.
|
18 |
* Author: Aruba.it
|
includes/ArubaHiSpeedCacheBootstrap.php
CHANGED
@@ -201,6 +201,17 @@ if (! class_exists(__NAMESPACE__ . '\ArubaHiSpeedCacheBootstrap')) {
|
|
201 |
|
202 |
//init
|
203 |
$this->loader->add_action('admin_init', '\ArubaHiSpeedCache\includes\ArubaHiSpeedCacheConfigs', 'ArubaHiSpeedCache_update_plugins_db');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
204 |
}
|
205 |
|
206 |
/**
|
201 |
|
202 |
//init
|
203 |
$this->loader->add_action('admin_init', '\ArubaHiSpeedCache\includes\ArubaHiSpeedCacheConfigs', 'ArubaHiSpeedCache_update_plugins_db');
|
204 |
+
|
205 |
+
if ( version_compare( get_bloginfo( 'version' ), '6.1.0', '>=' ) ) {
|
206 |
+
\add_filter( 'site_status_page_cache_supported_cache_headers', function( $cache_headers ) {
|
207 |
+
// Add new header to the existing list.
|
208 |
+
$cache_headers['x-aruba-cache'] = static function ( $header_value ) {
|
209 |
+
return false !== strpos( strtolower( $header_value ), 'hit' );
|
210 |
+
};
|
211 |
+
return $cache_headers;
|
212 |
+
});
|
213 |
+
}
|
214 |
+
|
215 |
}
|
216 |
|
217 |
/**
|
readme.txt
CHANGED
@@ -5,7 +5,7 @@ Tags: HiSpeed Cache, Aruba, cache, caching, performance, pagespeed, optimize, WP
|
|
5 |
Requires at least: 5.4
|
6 |
Tested up to: 6.1
|
7 |
Requires PHP: 5.6
|
8 |
-
Stable tag: 1.2.
|
9 |
License: GPLv2 or later
|
10 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
@@ -70,6 +70,9 @@ wordpress_no_cache, comment_author, wordpress_logged_in_, yith_wcwl_products, wp
|
|
70 |
|
71 |
== Changelog ==
|
72 |
|
|
|
|
|
|
|
73 |
= 1.2.2 =
|
74 |
* Woocommerce save option bug fix.
|
75 |
* Page update content bug fix.
|
@@ -111,8 +114,5 @@ wordpress_no_cache, comment_author, wordpress_logged_in_, yith_wcwl_products, wp
|
|
111 |
|
112 |
== Upgrade Notice ==
|
113 |
|
114 |
-
= 1.2.
|
115 |
-
*
|
116 |
-
* Page update content bug fix.
|
117 |
-
* Add no limit transient for json call.
|
118 |
-
* Various minor bug fixes and other improvements.
|
5 |
Requires at least: 5.4
|
6 |
Tested up to: 6.1
|
7 |
Requires PHP: 5.6
|
8 |
+
Stable tag: 1.2.3
|
9 |
License: GPLv2 or later
|
10 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
70 |
|
71 |
== Changelog ==
|
72 |
|
73 |
+
= 1.2.3 =
|
74 |
+
* Add x-aruba-cache header in site health
|
75 |
+
|
76 |
= 1.2.2 =
|
77 |
* Woocommerce save option bug fix.
|
78 |
* Page update content bug fix.
|
114 |
|
115 |
== Upgrade Notice ==
|
116 |
|
117 |
+
= 1.2.3 =
|
118 |
+
* Add x-aruba-cache header in site health
|
|
|
|
|
|