Don't run get_plugins() on every admin page load. Use cron for async update plugin requests. see #7372
git-svn-id: http://svn.automattic.com/wordpress/trunk@8514 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -99,7 +99,7 @@ function get_plugin_data( $plugin_file ) {
|
||||
function get_plugins($plugin_folder = '') {
|
||||
|
||||
if ( ! $cache_plugins = wp_cache_get('plugins', 'plugins') )
|
||||
$cached_plugins = array();
|
||||
$cache_plugins = array();
|
||||
|
||||
if ( isset($cache_plugins[ $plugin_folder ]) )
|
||||
return $cache_plugins[ $plugin_folder ];
|
||||
|
||||
Reference in New Issue
Block a user