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

WordPress Trac noreply at wordpress.org
Wed Jun 29 14:21:08 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):

 @SergeyBiryukov yet another approach to the problem. Probably the most fit
 with the WP core.
 [https://github.com/WordPress/WordPress/compare/master...itma:WordPress
 :l10n-custom-action-filter]

 By adding an action hook and filter hook any plugin can hook into that and
 process it on its own way. I prepared a test plugin for checking the
 approach - seems working as supposed
 https://github.com/itma/WP_LocaleCache_Plugin/blob/main/locale_cache_plugin.php.

 That way we are getting off all problems referring to manage any caching
 made by WP like it was in the previous proposals.

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


More information about the wp-trac mailing list