Skip Navigation

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 4 replies, has 2 voices.

Last updated by George Botsev 3 days, 3 hours ago.

Author Posts
January 18, 2025 at 3:29 pm #16609284

aliG-13

Background of the issue:
I'm trying to find the reason as to why my site is really slow. I've noticed that the options table is 289 MB and when I check its latest, it shows transient translations. When I search for the amount of transient, I have a number of 6,332. The issue can be seen at hidden link.

Symptoms:
The options table is 289 MB, and there are 6,332 transient translations, which may be causing the site to be slow.

Questions:
Why is the options table so large?
How can I reduce the number of transient translations?

January 20, 2025 at 8:28 am #16612006

George Botsev
Supporter

Languages: English (English )

Timezone: Europe/Sofia (GMT+02:00)

Hello!
Many plugins and themes store values in transients.
From your screenshot I cannot determine the size of the values.
Perhaps you can try and check the sizes with an SQL query like:

SELECT 
    option_name, 
    LENGTH(option_value) AS size
FROM 
    wp_options
WHERE option_name LIKE "_transient_%"
ORDER BY 
    size DESC
LIMIT 100;

On another note, WPML does not translate transients.

January 23, 2025 at 5:27 am #16625550

aliG-13

Hi, when I ran the query got the result in the screenshot

wen I don't limit to 100 I get 8978 rows

Screenshot 2025-01-23 082651.png
Screenshot 2025-01-23 082557.png
January 23, 2025 at 10:28 am #16626841

aliG-13

For more context, now the table is more than 400 MB and it's option_name is mostly

_transient_translated_html_3583c6e6bfd182198f5b00a7073f40ec etc

also the same page is cached multiple times with a different key not to mention that within the option_value is the entire html code of the page and it's autoload is set to off

January 23, 2025 at 1:03 pm #16628011

George Botsev
Supporter

Languages: English (English )

Timezone: Europe/Sofia (GMT+02:00)

I see that you have some strange transients called _transient_translated_html_
The size of a transient as far as I can see at the biggest entry is about 400kb
To my knowledge, WPML does not generate transient of that sort so you should probably check which plugin, part of theme or custom code is responsible for this transient.

Alternatively, if you are willing, you can provide us with a temporary Duplicator package so that we can take a look at the code that your site is using and determine this.