[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
Wed Nov 4 13:35:12 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 needs-patch  |     Focuses:
----------------------------------------------------+---------------------
Changes (by ocean90):

 * keywords:  needs-testing has-patch has-unit-tests dev-feedback 2nd-
     opinion => needs-testing dev-feedback needs-patch


Comment:

 > Though it may seem "unlikely" to switch locale in the same request, it
 does seem plausible that there are sites where this occurs.

 That's definitely not unlikely and actually the only purpose of this
 function, to switch the locale multiple times during a request.

 It seems like there's need for another registry which caches the full path
 per locale.

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


More information about the wp-trac mailing list