• Resolved msebel

    (@msebel)


    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 cache

    Altough 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)

    https://www.ads-software.com/plugins/polylang/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Chouby

    (@chouby)

    Hi!

    Could you please test with the development version (1.7.5.6)?
    https://downloads.www.ads-software.com/plugin/polylang.zip

    Thread Starter msebel

    (@msebel)

    Sorry for my delay. I’ve tested it. Adding the cache_domain solves this problem and another one with terms we recently discovered. Works as expected, if you ask me, thanks!

    Hello i have the same problem but only with the menu’s that i create.
    I use Redis

    For example i make the menu in the main language it’s working, i create the second menu language it’s working but it’s only showing the one or the other. Never the correct menu on the appropriate language.

    When i disable the Redis plugin, everything is working again.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Taxonomies mix up with activated object-cache’ is closed to new replies.