[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
Mon Dec 19 12:42:14 UTC 2022


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

Comment (by wpgurudev):

 I think we have two options here to tackle the first issue according to
 @flixos90 's comment:27

 1. Change the transient `_transient_dirsize_cache` autoload option to `no`
 in WordPress update.

 2. Add a temporray fix in WP using `query` filter so that whenever
 `wp_load_alloptions` function's query run to load options with autoload
 set to yes, we can exclude certain options from loading.

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


More information about the wp-trac mailing list