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 d16aff6 commit 6864440
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 **Vibes** are documented in this *changelog*.

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

## [1.2.1] - 2022-01-17

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

## [1.2.0] - 2022-01-17

### Added
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( 'VIBES_PRODUCT_SHORTNAME', 'Vibes' );
define( 'VIBES_PRODUCT_ABBREVIATION', 'vibes' );
define( 'VIBES_SLUG', 'vibes' );
define( 'VIBES_VERSION', '1.2.0' );
define( 'VIBES_VERSION', '1.2.1' );
define( 'VIBES_API_VERSION', '1' );
define( 'VIBES_CODENAME', '"-"' );

Expand Down
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: rum, real user monitoring, ux, web performance, web vitals
Requires at least: 5.6
Requires PHP: 7.2
Tested up to: 5.9
Stable tag: 1.2.0
Stable tag: 1.2.1
License: GPLv3
License URI: https://www.gnu.org/licenses/gpl-3.0.html

Expand Down
2 changes: 1 addition & 1 deletion vibes.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* Plugin Name: Vibes
* Plugin URI: https://perfops.one/vibes
* Description: Truthful user experience and browsing performances monitoring.
* Version: 1.2.0
* Version: 1.2.1
* Requires at least: 5.6
* Requires PHP: 7.2
* Author: Pierre Lannoy / PerfOps One
Expand Down

0 comments on commit 6864440

Please sign in to comment.