Skip to content

Commit

Permalink
Fixes Site Health deprecated test.
Browse files Browse the repository at this point in the history
  • Loading branch information
Pierre-Lannoy committed Jan 17, 2022
1 parent 18dfadc commit 390ff65
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 3 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@ All notable changes to **Apache Status & Info** are documented in this *changelo

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and **Apache Status & Info** adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [2.8.1] - 2022-01-17

### Fixed
- The Site Health page may launch deprecated tests.

## [2.8.0] - 2022-01-17

### Added
Expand Down
2 changes: 1 addition & 1 deletion htaccess-server-info-server-status.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* Plugin Name: Apache Status & Info
* Plugin URI: https://perfops.one/htaccess-server-info-server-status
* Description: Apache server-info and server-status monitoring right in your WordPress admin.
* Version: 2.8.0
* Version: 2.8.1
* Requires at least: 5.2
* Requires PHP: 7.2
* Author: Pierre Lannoy / PerfOps One
Expand Down
18 changes: 18 additions & 0 deletions includes/system/class-cache.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,24 @@ public static function is_memory() {
return wp_using_ext_object_cache() || self::$apcu_available;
}

/**
* Get cache analytics.
*
* @return array The cache analytics.
* @since 1.0.0
*/
public static function get_analytics() {
$result = [];
if ( self::$apcu_available ) {
$result['type'] = 'apcu';
} elseif ( wp_using_ext_object_cache() ) {
$result['type'] = 'object_cache';
} else {
$result['type'] = 'db_transient';
}
return $result;
}

/**
* Initializes properties.
*
Expand Down
2 changes: 1 addition & 1 deletion init.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
define( 'HSISS_PRODUCT_SHORTNAME', 'Apache S&I' );
define( 'HSISS_PRODUCT_ABBREVIATION', 'htaccess-server-info-server-status' );
define( 'HSISS_SLUG', 'htaccess-server-info-server-status' );
define( 'HSISS_VERSION', '2.8.0' );
define( 'HSISS_VERSION', '2.8.1' );
define( 'HSISS_CODENAME', '"-"' );

define( 'HSISS_CDN_AVAILABLE', true );
2 changes: 1 addition & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Tags: apache, htaccess, server-status, server-info, stackdriver
Requires at least: 5.2
Tested up to: 5.9
Requires PHP: 7.2
Stable tag: 2.8.0
Stable tag: 2.8.1
License: GPLv3
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Donate link: https://support.laquadrature.net/
Expand Down

0 comments on commit 390ff65

Please sign in to comment.