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.