[wp-trac] [WordPress Trac] #58919: Add a hook to set_cached_mo_files() to allow flexible caching strategies for globbing *.mo files

WordPress Trac noreply at wordpress.org
Tue Jan 16 21:43:25 UTC 2024


#58919: Add a hook to set_cached_mo_files() to allow flexible caching strategies
for globbing *.mo files
--------------------------------------+-------------------------
 Reporter:  mreishus                  |       Owner:  swissspidy
     Type:  enhancement               |      Status:  closed
 Priority:  normal                    |   Milestone:  6.5
Component:  I18N                      |     Version:
 Severity:  normal                    |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests  |     Focuses:
--------------------------------------+-------------------------

Comment (by SergeyBiryukov):

 In [changeset:"57299" 57299]:
 {{{
 #!CommitTicketReference repository="" revision="57299"
 I18N: Correctly invalidate language file paths in
 `WP_Textdomain_Registry`.

 Since the cache key in `::get_language_files_from_path()` is based on a
 path that always includes a trailing slash, the path in
 `::invalidate_mo_files_cache()` should include the trailing slash as well.

 Includes adjusting the test expectations accordingly.

 Follow-up to [57287], [57290], [57298].

 See #58919.
 }}}

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


More information about the wp-trac mailing list