该插件尚未通过WordPress的最新3个主要版本进行测试。 当与较新版本的WordPress一起使用时,可能不再受到维护或支持,并且可能会存在兼容性问题。

Dynamic MO Loader

描述

Changing the WordPress site language to any other than English slows down page generation times. A lot. This is caused by the slow and inefficient way of text domain loading. This plugin, based on the excellent work by Björn Ahrens, aims to fix that by loading only the text domains that are used in a page and even more, by caching them.
PO and MO files are designed to be used with PHP Gettext-extension. But since it\’s an extension, it\’s not installed by default on all hosting platforms. To overcome this barrier, WordPress has re-implemented the whole MO file parsing in PHP completely ignoring the possibility to use native gettext, if available. This WordPress\’ implementation is a bit slow.
This plugin has another implementation of MO parsing, which is faster than the default one. The plugin also loads only the text domains that are required to generate the current page instead the default behavior of loading every available text domain. As front end pages usually only use strings from few text domains, this leads to a great performance boost in front end.
To boost the performance even more, the plugin also caches the loaded text domains in to the object cache. For optimal performance you need a fast object cache backend like Redis, Memcached or APC(u).

Links

安装

Download and activate. That\’s it.

评价

此插件暂无评价。

贡献者及开发者

“Dynamic MO Loader” 是开源软件。 以下人员对此插件做出了贡献。

贡献者

将“Dynamic MO Loader”翻译成您的语言。

对开发感兴趣吗?

您可以浏览代码,查看SVN仓库,或通过RSS订阅开发日志

更新日志

1.4.1

  • inc/mo_dynamic.php revert

1.4.0

  • bugfix for plural translation

1.3.0

  • unique function names, sanitized current_url and bugfix for translate function concatenating string with zero

1.2.0

  • WordPress.org release