DrChocolate
Forum Replies Created
-
Forum: Plugins
In reply to: [WP-FFPC] Feature: Clear post pages for paginated postsHey Peter,
I’m not actually trying to precache these extra post pages; I’m trying to remove them from the cache. I understand that you’d want to limit calling WP functions as much as possible, but you’d only need to call it once for the currently published/updated post.
I can work on this too if you like, but it’ll be a few weeks before I can get to it.
-Zach
I agree that maintaining a catalog is probably not a good idea, especially since it’s so hard to retrieve all the memcache keys to check that it’s accurate.
Forum: Plugins
In reply to: [WP-FFPC] doesn't clear home on edit/publish, does clear category pagesAbsolutely, thanks for the awesome plugin!
Forum: Plugins
In reply to: [WP-FFPC] doesn't clear home on edit/publish, does clear category pagesSo I tracked the clearing key compilation script to
clear()inwp-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.