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:
ryan
2008-08-01 04:26:32 +00:00
parent 4d78593e80
commit 06a67ae8d2
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 ];