[wp-trac] [WordPress Trac] #51678: [5.6 Beta] Performance regression with i10n changes when translations files are not present

WordPress Trac noreply at wordpress.org
Mon Nov 9 14:51:08 UTC 2020


#51678: [5.6 Beta] Performance regression with i10n changes when translations files
are not present
-------------------------------------------------+-------------------------
 Reporter:  vedjain                              |       Owner:  (none)
     Type:  defect (bug)                         |      Status:  new
 Priority:  high                                 |   Milestone:  5.6
Component:  I18N                                 |     Version:  trunk
 Severity:  normal                               |  Resolution:
 Keywords:  needs-testing dev-feedback has-      |     Focuses:
  patch                                          |  performance
-------------------------------------------------+-------------------------

Comment (by vedjain):

 Added another possible solution in
 https://core.trac.wordpress.org/attachment/ticket/51678/patch_51678.patch
 which is basically the implemention of original suggestion but also clears
 the registry cache whenever locale is switched to prevent issue with
 switching locales in same request. This also restores the original
 performance as per 5.5 in my internal testing.

 Note that this can be improved a bit more by not clearing
 `cached_mo_files`, which I can make if the overall approach makes sense.

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


More information about the wp-trac mailing list