[wp-trac] [WordPress Trac] #64568: get_plugins() returning stale data after delete_plugins() successfully executed
WordPress Trac
noreply at wordpress.org
Thu Jan 29 04:24:09 UTC 2026
#64568: get_plugins() returning stale data after delete_plugins() successfully
executed
----------------------------+-----------------------------
Reporter: pentatonicfunk | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Plugins | Version: 6.9
Severity: normal | Keywords:
Focuses: |
----------------------------+-----------------------------
it seems even though `plugins` group cache is part of
`wp_cache_add_non_persistent_groups`, in the example below it returns
stale data because executions happens in the same runtime.
{{{
#!bash
$ wp shell
wp> get_plugins()
=> array(1) {
["health-check/health-check.php"]=>
array(15) {
["Name"]=>
string(30) "Health Check & Troubleshooting"
["PluginURI"]=>
string(43) "https://wordpress.org/plugins/health-check/"
["Version"]=>
string(5) "1.7.1"
["Description"]=>
string(44) "Checks the health of your WordPress install."
["Author"]=>
string(27) "The WordPress.org community"
["AuthorURI"]=>
string(43) "https://wordpress.org/plugins/health-check/"
["TextDomain"]=>
string(12) "health-check"
["DomainPath"]=>
string(0) ""
["Network"]=>
bool(false)
["RequiresWP"]=>
string(0) ""
["RequiresPHP"]=>
string(3) "5.6"
["UpdateURI"]=>
string(0) ""
["RequiresPlugins"]=>
string(0) ""
["Title"]=>
string(30) "Health Check & Troubleshooting"
["AuthorName"]=>
string(27) "The WordPress.org community"
}
}
wp> delete_plugins( ["health-check/health-check.php"] )
=> bool(true)
wp> get_plugins() <-- expecting health-check to be gone
=> array(1) {
["health-check/health-check.php"]=>
array(15) {
["Name"]=>
string(30) "Health Check & Troubleshooting"
["PluginURI"]=>
string(43) "https://wordpress.org/plugins/health-check/"
["Version"]=>
string(5) "1.7.1"
["Description"]=>
string(44) "Checks the health of your WordPress install."
["Author"]=>
string(27) "The WordPress.org community"
["AuthorURI"]=>
string(43) "https://wordpress.org/plugins/health-check/"
["TextDomain"]=>
string(12) "health-check"
["DomainPath"]=>
string(0) ""
["Network"]=>
bool(false)
["RequiresWP"]=>
string(0) ""
["RequiresPHP"]=>
string(3) "5.6"
["UpdateURI"]=>
string(0) ""
["RequiresPlugins"]=>
string(0) ""
["Title"]=>
string(30) "Health Check & Troubleshooting"
["AuthorName"]=>
string(27) "The WordPress.org community"
}
}
wp>
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/64568>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list