How to make WPML compatible with W3C Total Cache

If you’re a heavy user of WordPress and use WMPL together with W3C Total Cache then you might have found out that it doesn’t work properly when using alias domains for each language. The language switcher doesn’t work correctly anymore. It seems that it switches to the first cached page and/or sometimes a random page. It might work for all pages except the home, but can also affect all pages on the website.

The default setting for the disk cache on W3C Total Cache is enhanced. Simply by changing this option to basic, both plugins will work together flawlessly. In enhanced mode the caching plugin fiddles with the headers of the HTTP request, in basic mode it keeps them as they are.

Update: Added clarifications as per the comment of Richard

This entry was posted in Wordpress. Bookmark the permalink.

3 Responses to How to make WPML compatible with W3C Total Cache

  1. Can you elaborate on the issues you encounter please?
    I use both plugins and haven’t realised any issues, but would rather know in case things go bump.

    Cheers!

  2. Jan Willem says:

    Hi Richard,

    Thanks for your reply. I’ve updated the post with more information, apologies for not being clear directly. It only happens when you use domain aliasses and the problem is in the language switcher, which doesn’t as intended anymore.

    Also see a report by another user: http://wordpress.org/support/topic/after-w3-total-cache-redirect-domainde-to-wwwdomainde-does-not-work

  3. Ahmed says:

    Jan Willem

    Thank You!!

Comments are closed.