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

WordPress Trac noreply at wordpress.org
Thu Jun 23 19:11:48 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:  Text Changes  |     Version:  trunk
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:  performance
--------------------------+------------------------------

Comment (by itmapl):

 I was thinking a bit about the approach with files to cache the
 translation, ended up with thought that the approach does not fit the WP's
 simplicity. I changed it to using the native Transients API. Results are
 the same (still better, even better that caching with files like I did
 before).

 Here is the file, and the commit I made:

 https://github.com/WordPress/WordPress/blob/541766acf2cf21e7f03be1f1ea6605ab40d61898
 /wp-includes/l10n.php

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


More information about the wp-trac mailing list