• Resolved DrChocolate

    (@drchocolate)


    Hello,

    Upon editing or publishing a post, I see the corresponding category taxonomy pages invalidated in cache (using “modified post and all taxonomies” setting). However, the home page is not invalidated. If I manually clear the cache, the home page is indeed gone. So I’m hoping this is perhaps a bug in the taxonomy population logic from a recent update?

    I’m using memcache to an elasticache backend. Any advice to help debug would be appreciated. I tried looking through the plugin code, but so far I haven’t been able to isolate the problem.

    http://wordpress.org/plugins/wp-ffpc/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter DrChocolate

    (@drchocolate)

    So I tracked the clearing key compilation script to clear() in wp-ffpc-backend.php. There I added the below (right before /* run clear */) so I could check if my home page was in the list of keys it was clearing.

    $z_tax = print_r($to_clear, true);
    file_put_contents('/home/username/test.txt', 'clear(): tax list is ' . $z_tax . PHP_EOL, FILE_APPEND);

    Checking out this file, my home page was indeed missing. So I added this within the if ( $this->options['invalidation_method'] == 2 ) block:

    $to_clear[ get_site_url() . '/'] = true;

    And that fixed my problem. Obviously it’s not a proper fix – I wasn’t able to track down the source of my issue. But it’s a good temporary solution.

    Plugin Author petermolnar

    (@cadeyrn)

    hi,

    @drchocolate thank you for tracing down this bug; I’ll try to come up with a better solution, but I’m not sure I would be able to find one, so I’ll put your solution into the code soon.

    Thank you again!

    Thread Starter DrChocolate

    (@drchocolate)

    Absolutely, thanks for the awesome plugin!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘doesn't clear home on edit/publish, does clear category pages’ is closed to new replies.