mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
Cache get_plugins() list. Props DD32. fixes #7113
git-svn-id: https://develop.svn.wordpress.org/trunk@8068 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -82,16 +82,9 @@ if( !empty($action) ) {
|
||||
$parent_file = 'plugins.php';
|
||||
|
||||
$delete_result = delete_plugins($plugins);
|
||||
|
||||
//HACK TIME!
|
||||
// Proper way needed, perhaps get_plugins() to convert to wp_cache_get() any reason why it hasnt allready?
|
||||
// This clears the cached plugin list
|
||||
global $wp_plugins;
|
||||
$wp_plugins = null;
|
||||
|
||||
|
||||
|
||||
//TODO: Implement!.. STAT!
|
||||
|
||||
wp_cache_delete('plugins', 'plugins');
|
||||
|
||||
break;
|
||||
default:
|
||||
var_dump("Unknown Action $action");
|
||||
|
||||
Reference in New Issue
Block a user