Home » FAQ » Why String Translation appears to slow down sites

Why String Translation appears to slow down sites

December 31st, 2011 by Amir

WPML has two features which are great for translating, but make everything work slow – just for you (not for visitors). You can disable them.

Go to WPML->String Translation.

String Translation Speed Options

The first thing is:

“Track where string appear on the site”

With this, WPML keeps record of the PHP and HTML that called strings in the site. With this, if you see a string and you’re not sure where it’s used, WPML will tell you (click on the little ‘document’ icon next to the string). To work, this feature writes to the DB when strings are shown. Obviously, it shows things down.

The other thing is:
“Auto register strings for translation”

WPML will check if translatable strings are already registered in the String Translation table and, if not, add them. This is pretty useful if your site uses dynamically generated strings that WPML cannot locate when scanning the PHP code.

These two options are great to help you translate, but require many database accesses. They affect you as logged in Admin, but not affect visitors. You can switch them off if you have no use for them.