[wp-trac] [WordPress Trac] #34676: Optimize bulk plugin updates

WordPress Trac noreply at wordpress.org
Tue May 14 20:18:53 UTC 2019


#34676: Optimize bulk plugin updates
-------------------------------------------------+-------------------------
 Reporter:  jipmoors                             |       Owner:  (none)
     Type:  enhancement                          |      Status:  new
 Priority:  normal                               |   Milestone:  Awaiting
                                                 |  Review
Component:  Upgrade/Install                      |     Version:  4.4
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch needs-unit-tests shiny-    |     Focuses:
  updates                                        |  performance
-------------------------------------------------+-------------------------

Comment (by airathalitov):

 This is how I see it:


 == Logic for updating one plugin:

 - Download plugin
 - Unpack plugin

 - If plugin is active {
 - Turn on maintenance mode
 - Install plugin
 - Disable maintenance mode }

 - Else if plugin is not active {
 - Install plugin (without maintenance mode) }

 - Delete old files



 == Logic for updating multiple plugins:

 - Download all plugins
 - Unpack all plugins
 - Check status of each plugin (active|inactive)
 - Group plugins into 2 groups by status (active|inactive)
 - Install all inactive plugins (without enabling maintenance mode)
 - Enable maintenance mode
 - Install all active plugins
 - Disable maintenance mode
 - Delete old files

 This algorithm should work faster. And you do not need to constantly
 switch the maintenance mode.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/34676#comment:17>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list