Taxonomies mix up with activated object-cache
-
We’ve noticed, that, with a permanent object cache (memcached, file, redis, whatever you like) polylang is (like wordpress in general) way faster, but has a slight problem, that breaks posts:
Taxonomy Boxes in post editor start to mix up in languages since they might be cached by wordpress and polylang doesn’t cope with that behaviour.
Steps to reproduce:
1. Have two languages (german and english for example)
2. Have translated categories (4 for each language for example)
3. Create a german post with german categories
4. Create an english translation of that post -> english categories are shown
5. Go back to german post: Still, english categories are shown for ever until we flush the cacheAltough this sounds like a small problem, I tried to debug but couldn’t solve it myself, since I don’t quite understand the core of polylang itself and how it caches / invalidates.
When a user doesn’t realize that the categories are english in a german post, once saved, all categories are lost unintentionally.
(And of course it works without problems, once object caching is deactivated. It also doesn’t matter what kind of object-cache.php is used (memcached, redis etc.), it happens with every tested permanent / semi-permament object cache)
- The topic ‘Taxonomies mix up with activated object-cache’ is closed to new replies.