[wp-trac] [WordPress Trac] #32052: Add out of the box support for MO file caching
WordPress Trac
noreply at wordpress.org
Wed Apr 22 09:15:07 UTC 2015
#32052: Add out of the box support for MO file caching
-------------------------+------------------------------
Reporter: nicofuma | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: I18N | Version: trunk
Severity: normal | Resolution:
Keywords: | Focuses: performance
-------------------------+------------------------------
Description changed by SergeyBiryukov:
Old description:
> While profiling WordPress with [https://blackfire.io Blackfire] we found
> that parsing an ''mo'' file is a heavy task, and it's done on each page.
>
> [[Image(default-mo.png, link=https://blackfire.io/profiles/a03c95c9-fafe-
> 459e-a36a-e69edb2ed25d/graph)]]
>
> We propose to use the Object Cache API to not re-parse the file if it
> hasn't changed.
> This way any non English installations with a plugin implementing the
> Object Cache API could benefit of a significant performance improvement.
>
> You can see here a comparison showing the performance improvement:
> [[Image(mo-cache-comp.png, link=https://blackfire.io/profiles/a03c95c9
> -fafe-459e-a36a-e69edb2ed25d/graph)]]
>
> We found that a few plugins are doing the same thing but they are used
> very much and we think it could be great to have it mainstream.
New description:
While profiling WordPress with [https://blackfire.io Blackfire] we found
that parsing an ''mo'' file is a heavy task, and it's done on each page.
[[Image(default-mo.png, link=https://blackfire.io/profiles/a03c95c9-fafe-
459e-a36a-e69edb2ed25d/graph)]]
We propose to use the Object Cache API to not re-parse the file if it
hasn't changed.
This way any non English installations with a plugin implementing the
Object Cache API could benefit of a significant performance improvement.
You can see here a comparison showing the performance improvement:
[[Image(mo-cache-comp.png, link=https://blackfire.io/profiles/a03c95c9
-fafe-459e-a36a-e69edb2ed25d/graph)]]
We found that a few plugins are doing the same thing but they are not used
very much and we think it could be great to have it mainstream.
--
--
Ticket URL: <https://core.trac.wordpress.org/ticket/32052#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list