Install a translation accelerator
Many CMS (Contents Management System) software, like WordPress, are designed in a single language (in this case US English), so whenever you use a different language version, it will utilize a dictionary file to translate the content real-time. This real-time translation takes time, so its important to consider translation overheard.
With that, we will install a translation accelerator to cache the translation and speed up WordPress.
We will be using the free WordPress plugin "001 Prime Strategy Translate Accelerator" developed by Prime Strategy.
Download and unzip the plugin.
[root@ip ~]# cd /var/www/html/wp-content/plugins [root@ip plugins]# wget https://downloads.wordpress.org/plugin/001-prime-strategy-translate-accelerator.1.1.0.zip [root@ip plugins]# unzip 001-prime-strategy-translate-accelerator.1.1.0.zip
Next, log in to the WordPress Dashboard and enable the newly installed plugin. On the settings page, check "enable cache" and set the cache type to APC. Leave the next three fields at "cache" and save your changes.
When you are finished, log out and refresh the front page to check the results with Firebug. In my environment, page load time was 53ms and requests per second was 39.29.
Disable translation to speed things up more
Next, log in to WordPress again, and change the translation accelerator settings one more time. Choose "stop translation" for the site display language. Log out again and refresh the top page to see your performance increase. In my environment page load time was 36ms and requests per second was 56.78.
If you check your website again, you will see that your content will be in the language of your choice, but other sections may not be translated from US English.
This setting is extremely helpful if your theme is designed to overcome the translation problem. Of course this only applies to version of WordPress outside the default.
Tuning contents | Page load time | Requests per second |
Default environment | 176ms | 11.24 |
APC | 70ms (251%) | 29.20 |
OPcache+APCu | 66ms (266%) | 30.51 |
MariaDB settings |
64ms (275%) | 31.82 |
Translation accelerator (cache) | 53ms (332%) | 39.29 |
Translation accelerator (disabled) | 36ms (488%) | 56.78 |
Next time, we will enable gzip and change to the event MPM+php-fpm configuration to get 540% more speed.