Don't run get_plugins() on every admin page load. Use cron for async update plugin requests. see #7372

git-svn-id: https://develop.svn.wordpress.org/trunk@8514 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2008-08-01 04:26:32 +00:00
parent 0b3c278d63
commit cf2daaf071
3 changed files with 19 additions and 13 deletions

View File

@@ -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 ];