• Hi,

    when running w3tc with database and object store caching on redis, but both not enabled for wp cli “wp post term list ID TAXONOMY” will cache the results as objects. If the term is modified, I have to manually run “wp w3tc flush object” to be able to fetch the new content during the object cache ttl.

    is there a fix or solution for this?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @mbfdias

    Thank you for reaching out, and I am happy to help!
    We have tried to replicate this; however, we were unable to do so
    Can you please share more information about this? And share more details so we can try to replicate the behavior?
    What type of changes are made on your end, and any specific CLI or other CLI commands that you are using?
    Please provide a step-by-step process so we can try and test this and make sure we have a solution for you

    Thanks!

    Thread Starter mbfdias

    (@mbfdias)

    hi,
    yes I can. I found this problem specifically when using a taxonomy “post_translations” that is used in polylang

    If I fetch “wp post term list POST_ID post_translations –fields=term_id,term_taxonomy_id,description –format=json”
    and another process adds another translation to the post, causing the value of “description” for that POST_ID to change

    if I run “wp post term list POST_ID post_translations –fields=term_id,term_taxonomy_id,description –format=json” again I see no change, but if I run “wp w3tc flush object” I get the new value for description

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @mbfdias

    Thank you for your patience.
    We’ve tried to replicate this, but no success

    another process adds another translation to the post

    Can you clarify which proccess?

    Thanks!

    Thread Starter mbfdias

    (@mbfdias)

    hi
    yes,

    for example if I open a mysql connection and update the term taxonomy for the post with:

    UPDATE wp_term_taxonomy set description = ‘a:2:{s:2:”en”;i:3454577;s:2:”de”;i:3454609;}’ WHERE term_id = 640304 limit 1;

    wp post term list 3454577 post_translations –fields=term_id,term_taxonomy_id,description –format=json
    won’t give me the updated value, but if I wp w3tc flush object, I get the updated value.

    I hope this helps 🙂




Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘wp cli using object cache even when it’s not enabled for wp cli’ is closed to new replies.