mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-02-22 16:52:42 +00:00
Site Health: Ensure persistent object cache check short-circuit filter also short-circuits multisite.
Follow up to [54053]. See #56040. git-svn-id: https://develop.svn.wordpress.org/trunk@54054 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
033d43e7d9
commit
14410c50da
@ -3290,10 +3290,6 @@ class WP_Site_Health {
|
||||
public function should_suggest_persistent_object_cache() {
|
||||
global $wpdb;
|
||||
|
||||
if ( is_multisite() ) {
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Filters whether to suggest use of a persistent object cache and bypass default threshold checks.
|
||||
*
|
||||
@ -3309,6 +3305,10 @@ class WP_Site_Health {
|
||||
return $short_circuit;
|
||||
}
|
||||
|
||||
if ( is_multisite() ) {
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Filters the thresholds used to determine whether to suggest the use of a persistent object cache.
|
||||
*
|
||||
|
||||
Loading…
Reference in New Issue
Block a user