[wp-trac] [WordPress Trac] #54221: _transient_dirsize_cache is set to autoload=yes and kills db performance if it grows (20MB in our case)

WordPress Trac noreply at wordpress.org
Tue Sep 5 08:40:29 UTC 2023


#54221: _transient_dirsize_cache is set to autoload=yes and kills db performance if
it grows (20MB in our case)
-------------------------------------+-------------------------------------
 Reporter:  archon810                |       Owner:  spacedmonkey
     Type:  defect (bug)             |      Status:  assigned
 Priority:  normal                   |   Milestone:  6.4
Component:  Database                 |     Version:  2.8
 Severity:  major                    |  Resolution:
 Keywords:  has-patch changes-       |     Focuses:  administration,
  requested                          |  performance
-------------------------------------+-------------------------------------

Comment (by nicomollet):

 @spacedmonkey I added my new patch.
 Took care of the expiration after early return.
 It doesn't include `wp_installing()` condition.

 > Question, do we need to clean the transient / update the autoload value
 on upgrade? Say in wp_upgrade?
 I don't think this transient needs cleaning on upgrade. It only contains
 list of folders sizes in WP.

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


More information about the wp-trac mailing list