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.

Sun Mon Tue Wed Thu Fri Sat
- 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 -
- 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 -

Supporter timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Tagged: 

This topic contains 1 reply, has 2 voices.

Last updated by Long Nguyen 1 month, 2 weeks ago.

Assisted by: Long Nguyen.

Author Posts
October 15, 2024 at 6:55 am

dirkT-3

Background of the issue:
I am trying to investigate the amount of queries for WPML_Element_Translation->maybe_populate_cache on my site hidden link. Specifically on product pages.

Symptoms:
No specific issue or error message mentioned.

Questions:
Can you disable these queries on product page: WPML_Element_Translation->maybe_populate_cache?

October 15, 2024 at 7:48 am
October 16, 2024 at 4:04 am #16292986

Long Nguyen
Supporter

Languages: English (English )

Timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Hi Dirk,

After restoring your site on my local host, I adjusted some settings and did a troubleshooting step, the maybe_populate_cache queries were reduced to 140 and only took 0.01 seconds to load which is a better result.

1. Go to WPML > Settings > Post types translation > Set the Product preference to "Translatable - only show translated items".
2. Deactivate all plugins except WPML plugins, WooCommerce and switch to a WordPress theme.

On your site, you can review plugins and deactivate plugins that are not necessary. I also keep the option auto-adjust ID enabled on the local site when testing so it won't affect the issue in the previous ticket with the product category slug.

Refer to my colleague's suggestion https://wpml.org/forums/topic/performance-issue-21/page/3/#post-14567621

Looking forward to your reply.
Thanks

Apple iPhone 13 mini – myChoyce 2024-10-16 10-46-47.png

The topic ‘[Closed] Amount of queries on product page’ is closed to new replies.