[wp-trac] [WordPress Trac] #32052: Add out of the box support for MO file caching

WordPress Trac noreply at wordpress.org
Wed Apr 22 14:01:59 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
-------------------------+------------------------------

Comment (by nicofuma):

 I missed that the PO/MO libraries shouldn't have any WordPress
 dependencies, sorry. So there is a new version of the patch moved to
 `load_textdomain()` by the way I also moved from the Object Cache API to
 the Transient API. There are the profiles:

 Current state: [https://blackfire.io/profiles/30037359-52be-
 4bef-8737-f05d40f7c233/graph profile]
 Without any Object Cache: [https://blackfire.io/profiles/2a0891fe-697b-
 46c3-b417-77cd23f335ea/graph profile]
 [https://blackfire.io/profiles/compare/a70563a7-1b2f-
 4cd9-91d6-25433e795a56/graph comparison with current]
 With W3 enabled (and its disk Object Cache strategy):
 [https://blackfire.io/profiles/c2904256-f0e4-470b-b296-2250b013aac6/graph
 profile] [https://blackfire.io/profiles/compare/389044c7-920b-
 4e36-aea0-eba02568cc65/graph comparison with current]

 To sump-up: caching this kind/amount of data in database is beneficial but
 it's faster with an object cache. And thanks to the transient API we use
 automatically the best caching strategy (db versus object cache).

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


More information about the wp-trac mailing list