Plugin caching prevents detection of newly installed plugins
|Reported by:||Murmatron 2||Owned by:|
Use of wp_cache_get/wp_cache_set in get_plugins in /wp-admin/includes/plugin.php prevents a newly installed plugin from being detected until object cache is purged.
By the same mechanism, a plugin directory that has been manually zapped from the filesystem is shown as a recently deactivated plugin.
There's no obvious criterion for invalidating the cached object since it's created from a filesystem scan and actively prevents another one occurring.
Perhaps something like a "Scan disk for new/deleted plugins" button on the admin page that deletes the plugins cache would be a solution worth considering.