[wp-trac] [WordPress Trac] #56051: load_textdomain() cached for the better boot-up performance

WordPress Trac noreply at wordpress.org
Fri Jun 24 13:15:53 UTC 2022

#56051: load_textdomain() cached for the better boot-up performance
 Reporter:  itmapl       |       Owner:  (none)
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  I18N         |     Version:  trunk
 Severity:  normal       |  Resolution:
 Keywords:               |     Focuses:  performance

Comment (by itmapl):

 Yup, these tickets are totally related. Even the approach to solve the
 problem is the same. I suggest choosing one of the proposed solutions.
 [https://core.trac.wordpress.org/ticket/17268] contains a proof of concept
 for the plugin nevertheless the plugin has been disabled as it applies to
 the core files.

 What I've been thinking about is adding a cache clear after a language
 update via admin. This will give the way a user doesn't have to care about
 what is cached (and all the stuff to manage that) referring to l10n etc.
 All will be done under the hood.

 The change to the core WP implementation will significally decrease the
 memory usage, and speeds-up the boot-up time so I think it is worth
 considering keeping in mind that Google cares about that.

Ticket URL: <https://core.trac.wordpress.org/ticket/56051#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform

More information about the wp-trac mailing list