mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
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:
@@ -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