Object cache and i18n issue
-
I have an issue with WPML and W3 Total Cache, but I don’t know where is the problem. I will start with the example code:
$spanish = get_option( 'option_name' ); global $sitepress; $sitepress->switch_lang('en'); $english = get_option( 'option_name' );
Object cache and Database cache is enabled.
The problem is that my second call to
get_option
takes the value of the first call. So, what should be in English, is in Spanish. It is a caching issue, but I don’t know how to avoid it.I modified in the database
autoload
tono
for this option, emptied all caches, but still the second call gets the first value.What should I do?
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Object cache and i18n issue’ is closed to new replies.