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 -
- 12:00 – 16:00 12:00 – 16:00 12:00 – 16:00 12:00 – 16:00 12:00 – 16:00 -

Supporter timezone: Europe/Zagreb (GMT+01:00)

This topic contains 8 replies, has 2 voices.

Last updated by Dražen 1 year, 9 months ago.

Assisted by: Dražen.

Author Posts
April 1, 2023 at 3:35 pm #13381489

lorenzP

The WPML documentation recommends using Redis Object Cache or Memcached:

https://wpml.org/documentation/support/using-wpml-with-redis-caching/

So far we tried different object caches with WPML and always run into issues. Therefore all our services using WPML do not have any object caches being enabled.

1) Memcached (Lite Speed Cache)

With Memcached enabled we got 404 errors on translated pages. Disabling the object cache solved this issue.

2) Redis Object Cache

With this object cache we had the same 404 errors.

This seems to be the exactly same issue: https://wpml.org/forums/topic/duplicating-a-page-and-switching-its-language/

3) APCu Manager

Using APCu Manager we had problems seeing the latest translated content. For instance we initially translated A as A. Then we translated it to B and the text on the translated page was still A. Then we translated it to C and the text on the translated page was now B i.e. always one translation back. After disabling the APCu Manager plugin everything was fine again.

Is there a stable way to use an object cache? If yes, are special settings needed? So far all our attempts failed and all issues were 100% reproducible. We would like to use an object cache to get the best performance but there should not be any side effects.

April 1, 2023 at 4:04 pm #13381557

lorenzP

One correction concerning Memcached: we used WP Memcached plugin from Automattic (hidden link) and not the one from Lite Speed Cache.

The issue we saw here was: German links always redirected to the English pages. This was seen in October 2022. After disabling the plugin this issue was gone.

April 3, 2023 at 7:19 am #13387337

Dražen
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+01:00)

Hello,

thanks for contacting us.

I understand your issue and problem happening, what we can do and suggest is try to reproduce a simple example issue on a new test site with the suggested plugin from our side Redis Object Cache.

Then when we have clear steps to check, reproduce the issue, and confirm it, I can escalate further escalate to our 2nd tier and hopefully devs to check and try to fix the problem.

So please create a new clean test staging site with only WPML and Redis Object Cache. Try to reproduce the issue with clear simple steps and share those with me.

Let me know how it goes and if this is possible.

Thanks,
Drazen

April 3, 2023 at 1:39 pm #13390773

lorenzP

We are using ACF Pro and your ACFML plugin. This will also be needed in the test case.

We have some dev environments with minimal setup. I will check if there is one we can provide. This might take a few days.

April 4, 2023 at 6:29 am #13396473

Dražen
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+01:00)

Hello,

sure, take your time and let us know how it goes.

Thanks,
Drazen

April 9, 2023 at 7:57 pm #13434723

lorenzP

Still pending.

April 11, 2023 at 6:27 am #13441991

Dražen
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+01:00)

Hello,

sure, take your time.

Ticket will stay open for around 2 weeks from my last reply.

Kind regards,
Drazen

April 21, 2023 at 4:09 pm #13519127

lorenzP

Still trying to reproduce this on a minimal system. On our large product environment and staging it is reproducible. Just got a never stopping spinner after translating which completed after disabled the Redis Object Cache.

April 24, 2023 at 5:40 am #13524287

Dražen
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+01:00)

Hello,

sure, yes as said Object cache can affect the saving of translations.

Let us know.

Regards,
Drazen

The topic ‘[Closed] Object Cache Issues’ is closed to new replies.