[wp-trac] [WordPress Trac] #39210: switch_to_locale() unloads all plugin and theme translations
WordPress Trac
noreply at wordpress.org
Thu Oct 20 22:29:11 UTC 2022
#39210: switch_to_locale() unloads all plugin and theme translations
-------------------------------------------------+-------------------------
Reporter: gchtr | Owner: ocean90
Type: defect (bug) | Status: reopened
Priority: normal | Milestone: 6.1
Component: I18N | Version: 4.7
Severity: normal | Resolution:
Keywords: has-unit-tests has-patch needs-dev- | Focuses:
note |
-------------------------------------------------+-------------------------
Comment (by spacedmonkey):
Forgive me, but I put together a very simple patch, that caches, if the
file exists or not. See [https://github.com/WordPress/wordpress-
develop/pull/3508 #3508]. This seems to fix much of the problem, as I am
seeing page speed improve.
If this is not the solution, then I would love to understand why not.
Because I don't see a reason not to cache is_readable, it seems it is not
a value that is going to change in a page request.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/39210#comment:77>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list