This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

This topic contains 11 replies, has 3 voices.

Last updated by Dennis 5 months ago.

Assigned support staff: Dennis.

Author Posts
May 9, 2019 at 2:00 pm #3776857

jerryd-4

Tell us what you are trying to do?

Make the webshop faster! What can we do or delete in the WPML plugin?
Is there somewhere a tutorail to delete strings who we don't need?

Or do you have tips? Because WPML is a big plugin.

Is there any documentation that you are following?
no

Is there a similar example that we can see?
no

What is the link to your site?
shop.littlekolibriorchids.nl

May 9, 2019 at 2:56 pm #3777449

Carlos Rojas
Supporter

Languages: English (English ) Spanish (Español )

Timezone: America/Montevideo (GMT-03:00)

Hello,
Thank you for contacting WPML support.

1.- I would like to ask you to follow this steps:
- Create a full backup of the site for security reasons.
- Update all outdated plugins and themes, specially WPML plugins. Outdated functionalities can cause conflicts in the code.
- Follow the steps described in this link: https://wpml.org/faq/prevent-performance-issues-with-wpml/

2.- I also recommend you to increase the memory limit to 256Mb.
You can add this to wp-config.php to increase WP memory:

/** Memory Limit */
define('WP_MEMORY_LIMIT', '256M');

- Add it above the line /* That's all, stop editing! Happy blogging. */

Kind regards,
Carlos

May 9, 2019 at 4:04 pm #3777905

jerryd-4

1. We updates everything.

1.2. We will checked all the steps. But what we want to know.
Is it true that you can delete strings that you don't use? And when you delete all the strings the performance is also better?

If yes,
Could you tell us how we could delete strings? And how do we know that we don't use them? Do you have tips?

2. This was already added. But we have two rules?
define( 'WP_MEMORY_LIMIT', '128M' );
define( 'WP_MAX_MEMORY_LIMIT', '256M' );

Can we delete one of these?

May 9, 2019 at 11:21 pm #3779813

Carlos Rojas
Supporter

Languages: English (English ) Spanish (Español )

Timezone: America/Montevideo (GMT-03:00)

Hi there,
Thank you very much for your feedback.

Yes, you can delete the strings you don't use by going to:
- WPML -> String Translation -> Manually select/delete the strings you don't use -> Make sure to deselect the domain from been automatically scanned in the future by WPML (section bottom left).

You can also go to WPML -> Support -> Troubleshooting link -> Click on 'Recreate ST DB cache tables' button.

Regards,
Carlos

May 10, 2019 at 6:14 am #3781549

jerryd-4

Hi Carlos,

Thank you for your reply! We have a few question more..
We want to delete all strings we don't need, but how do we know that we don't need strings?
Do you have some tips for us? Do we only need to delete the language we don't need?

1. What happend with the strings we deleted? Are these deleted strings not visible anymore?
2. And when we delete a string that is a mistake?
3. Why do we need to deselect the domain for been automatically scanned? In the performance tutorial they said you have to enable everything.
4. What is recreate ST DB cache tables? Why we need to do this?
And where is that option? hidden link

With best regards,

Jerry

May 10, 2019 at 11:10 am #3783505

Carlos Rojas
Supporter

Languages: English (English ) Spanish (Español )

Timezone: America/Montevideo (GMT-03:00)

Hi Jerry,

How do we know that we don't need strings? Do you have some tips for us? -> In this case you need to be aware of the content you are showing in the site, keep the content + options you show to clients and then delete the rest. This is different for every site.

Do we only need to delete the language we don't need? -> Once you remove a string you will be removing its translations too.

1. What happend with the strings we deleted? -> The strings you delete will be removed from our translation tables in the database.
Are these deleted strings not visible anymore? -> If the domain is selected to by automatically scanned then the string will appear again, if the domain isn't selected then WPML won't automatically scan it for new strings.

2. And when we delete a string that is a mistake? -> No, deleting a string (and deselecting the domain to be auto-scanned) will only remove the string from our tables and tell WPML not to scan it again. It could be considered a mistake only if the string you remove is used in the site (specially in the frontend) as you won't be able to translate it for end users.

3. Why do we need to deselect the domain for been automatically scanned? In the performance tutorial they said you have to enable everything. -> Deselect the domain will prevent WPML to automatically scan it for new strings. In the case that you delete a string but the domain is still selected then WPML eventually will scan + add the string again to String Translation.

4. What is recreate ST DB cache tables? Why we need to do this? -> This is an option to flush the cache memory generated at database level by String Translation and in some cases can grow enough to affect the site's performance.

And where is that option? -> You can find this option in WPML -> Support -> Troubleshooting link -> Almost at the bottom of the page.

Please let me know if you have more questions and I will be more than happy to keep assisting you.
Regards,
Carlos

May 13, 2019 at 8:14 am #3795929

jerryd-4

Hi Carlos,

Thank you for your great support!

We are a little afraid to delete strings. I will costs a lot of time to investigate of strings are used on the website. Is there an option to check if the string is used on the front-end?

And what is mean 'flush cache memory'? Does a DB also have cache?

With best regards,

Jerry

May 14, 2019 at 2:44 am #3802791

Dennis
Supporter

Languages: English (English )

Timezone: Asia/Manila (GMT+08:00)

Hi,

Carlos is on vacation so I am taking care of this ticket. Hope this is okay with you.

You can use the Track where strings appear on the site feature of WPML. However, when enabled this will slow down your site. So you need to disable it when you don't need it.

Please check our documentation about it here: https://wpml.org/faq/why-string-translation-appears-to-slow-down-sites/

String translation cache are stored in one of the WPML tables in the database. Flushing will delete and re-create the cache table.

Kind regards,
Dennis

May 14, 2019 at 6:42 am #3803985

jerryd-4

Hi Dennis,

Thank you for your reply.

-> How does the track where strings appear on the site? Is there somewhere a tutorial for this? Is this an option to check if the strings are used on the website??

-> Why is it better to delete and after that create the cache table? We don't understand it...

Thank you in advance.

Jerry

May 14, 2019 at 8:39 am #3804785

Dennis
Supporter

Languages: English (English )

Timezone: Asia/Manila (GMT+08:00)

Hi,

Please check this documentation on how to use string tracking feature:

https://wpml.org/documentation/getting-started-guide/string-translation/#track-strings

Flushing the cache is needed to recover database space and fix misbehaving string translation like string translation not updating the current translation or still using the old translation.

Kind regards,
Dennis

May 15, 2019 at 1:23 pm #3816921

jerryd-4

Hi Dennis,

So when we want to know where the string is coming from, we can turn on tracking?
But.. When we open the document before the string... we only see code? Do we need to change the code in the file? Or is it just to check?

We enabled the function but nothing is showed? See image.
What are we doing wrong?

greets,

Jerry

May 16, 2019 at 2:03 am #3820817

Dennis
Supporter

Languages: English (English )

Timezone: Asia/Manila (GMT+08:00)

Hi,

Please try to re-scan string from your theme and plugins at WPML > Theme and plugins localization

Please also check the steps on how to use string tracking feature:

https://wpml.org/documentation/getting-started-guide/string-translation/#track-strings

1. Enable the Track where strings appear on the site option.
2. Visit the site’s front-end pages.
3. Switch to a language other than the site’s default language.
4. WPML will register any string that appears on the page you are viewing. Move from page to page to cover all the strings you need.

View in page will appear after you visited the frontend page where the string is used. That's why on step 4, you have to skim your pages in order to register more strings.

View in source option will only let you check the source code where the string was used.

Kind regards,
Dennis