Clearing cache not working with multi-domain website
-
We have a website that is using the WPML Multilingual plugin to have two different languages (dutch and english), each language has it’s own domain, but it is a single website, so not a multisite installation.
The problem is that when we clear the cache, it will always be the caching folder with the dutch domain that gets cleared, no matter which domain/language we’re on when clearing the cache. I think the reason for this is that the plugin uses
get_option('home');
to get the domain name, which gets stripped down and gets used to find the right caching folder, only this option always returns the dutch domain because there is only one home option in the database and that one is set to the dutch domain.I noticed that wordpress does return the right domain when using
home_url();
instead, which would most likely solve the issue.
- The topic ‘Clearing cache not working with multi-domain website’ is closed to new replies.