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:
Ryan Boren
2008-06-10 16:57:33 +00:00
parent 70d87d4c0d
commit a5afa77fca
3 changed files with 14 additions and 17 deletions

View File

@@ -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");