From fc8632e55e73bc8a9a08d2a7a145a27e9322473d Mon Sep 17 00:00:00 2001 From: marco Date: Sun, 5 Jul 2026 17:33:43 +0200 Subject: [PATCH] OPcache --- readme.md | 2 ++ unmus_sitehealth.php | 12 ++++++++++++ 2 files changed, 14 insertions(+) diff --git a/readme.md b/readme.md index 0baeb80..28490d7 100644 --- a/readme.md +++ b/readme.md @@ -95,6 +95,7 @@ Following standard features of the WordPress Core are manipulated or extended. * Disable Persistent Object Cache Test * Disable Threaded Comments Check (Activity Pub) +* Disable OPcode Check ### Update @@ -238,6 +239,7 @@ Release pending. * Fixed: Content Type Return @ WP REST CACHE * Fixed: Force CPTs in Tag Archives * Changed: Remove Mastodon Account @ Federated Comment extended with Mentions +* Removed: Disbale OPcode Check @ Site Health ### 0.8 diff --git a/unmus_sitehealth.php b/unmus_sitehealth.php index 451d93b..6f05f26 100644 --- a/unmus_sitehealth.php +++ b/unmus_sitehealth.php @@ -18,6 +18,18 @@ add_filter('site_status_should_suggest_persistent_object_cache', '__return_false'); +/** + * Disable OPcache Check + * + * @since 0.9 + */ + +function unmus_sitehealth_disable_opcode_check($tests) { + unset($tests['direct']['opcode_cache']); + return $tests; +} +add_filter('site_status_tests', 'unmus_sitehealth_disable_opcode_check'); + /** * Disable Threaded Comments Check @ Activity Pub *