Cache WordPress translations

WordPress has many cache layers available, and something that is not natively cached, but loaded in each request, are the translation phrases of a WordPress that is not in Us English (the text that comes natively without extra file).

Considering that a large part of WordPress is in a language that is not the native language of the software, and if you have some kind of cache layer already installed in your WordPress (either PHP Opcaché or objects such as Redis or memcached) a good option is to load the cached translation files so that they are available and processed in memory almost immediately.

For this we can use the WordPress Translation Cache plugin. It must be said that it is not a plugin to use, but you have to install it as Plugin Must-Use (in the folder /wp-content/mu-plugins/).

Just download the pomodoro file.php and upload it to the server.

From that moment on, the . PO/. MO translations of both WordPress and themes and plugins will begin to be cached, which will imply an improvement in the performance of your WordPress site.


About this document

This document is regulated by the EUPL v1.2 license, published in WP SysAdmin and created by Javier Casares. Please, if you use this content in your website, your presentation or any material you distribute, remember to mention this site or its author, and having to put the material you create under EUPL license.