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
+1
View File
@@ -133,6 +133,7 @@ function wp_cron() {
function wp_get_schedules() {
$schedules = array(
'hourly' => array( 'interval' => 3600, 'display' => __('Once Hourly') ),
'twicedaily' => array( 'interval' => 43200, 'display' => __('Twice Daily') ),
'daily' => array( 'interval' => 86400, 'display' => __('Once Daily') ),
);
return array_merge( apply_filters( 'cron_schedules', array() ), $schedules );