This commit is contained in:
Javier Casares 2026-06-02 13:43:23 +00:00
commit 9aef0b4533
7 changed files with 18 additions and 9 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 208 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 222 KiB

View file

@ -1,5 +1,12 @@
== Changelog ==
= [5.0.1] - 2026-06-02 =
**Fixed**
* `wp_cache_flush()` removed from `wpvulnerability_update_database_data()` and `wpvulnerability_reset_plugin_data()`. The function was wiping the entire Object Cache (Redis, Memcached, APCu) on every plugin or theme update, causing CPU spikes and database overload on high-traffic sites. The targeted `wpvulnerability_delete_transients()` call that already runs before it invalidates all plugin-owned cache entries; a global flush was never necessary.
* `wp_cache_flush()` was called twice on plugin reset: once inside `wpvulnerability_update_database_data()` and once more immediately after in `wpvulnerability_reset_plugin_data()`. Both calls have been removed.
= [5.0.0] - 2026-05-26 =
**Added**

Binary file not shown.

View file

@ -3,9 +3,9 @@ Contributors: javiercasares, davidperez, lbonomo, alexclassroom
Tags: security, vulnerability, site-health
Requires at least: 5.6
Tested up to: 7.1
Stable tag: 5.0.0
Stable tag: 5.0.1
Requires PHP: 7.0
Version: 5.0.0
Version: 5.0.1
License: GPL-3.0-or-later
License URI: https://spdx.org/licenses/GPL-3.0-or-later.html
@ -201,6 +201,12 @@ First of all, peace of mind. Investigate what the vulnerability is and, above al
== Changelog ==
= [5.0.1] - 2026-06-02 =
**Fixed**
* `wp_cache_flush()` removed from the plugin/theme update hook and the plugin reset routine. The function was wiping the entire Object Cache (Redis, Memcached, APCu) on every update, causing CPU spikes on high-traffic sites. The targeted transient cleanup that already runs before it is sufficient.
= [5.0.0] - 2026-05-26 =
**Added**

View file

@ -78,9 +78,6 @@ function wpvulnerability_update_database_data() {
}
wpvulnerability_statistics_get();
// Clean the WordPress cache.
wp_cache_flush();
}
/**
@ -531,7 +528,6 @@ function wpvulnerability_reset_plugin_data() {
}
wpvulnerability_update_database_data();
wp_cache_flush();
}
/**

View file

@ -5,7 +5,7 @@
* Description: Receive information about possible vulnerabilities in your WordPress from WordPress Vulnerability Database API.
* Requires at least: 5.6
* Requires PHP: 7.0
* Version: 5.0.0
* Version: 5.0.1
* Author: ROBOTSTXT
* Author URI: https://www.robotstxt.es/
* License: GPL-3.0-or-later
@ -15,7 +15,7 @@
*
* @package WPVulnerability
*
* @version 5.0.0
* @version 5.0.1
*/
defined( 'ABSPATH' ) || die( 'No script kiddies please!' );
@ -23,7 +23,7 @@ defined( 'ABSPATH' ) || die( 'No script kiddies please!' );
/**
* Set some constants that I can change in future versions.
*/
define( 'WPVULNERABILITY_PLUGIN_VERSION', '5.0.0' );
define( 'WPVULNERABILITY_PLUGIN_VERSION', '5.0.1' );
define( 'WPVULNERABILITY_API_HOST', 'https://www.wpvulnerability.net/' );
/**