Do you have a static page on the front page of your site?
Yes
Can you describe what happened?
Whenever I publish the custom front page, all pages are marked as gc (I went to the cache dir, and found all files are appended with .gc or something similar)
Currently before I update the front page, I have to add return
to the wp_cache_post_id_gc
function in wp-cache-phase2.php
. And then manually clear the front page cache by going there and then click the Delete Cache
button (ah, this doesn’t seem to prune the cache by garbage collect it)
I think because the front page has the url /
, wp super cache will just mark everything in that dir as gc. I think the problem is around line 2945 (I modified the plugin, so can only give an estimated line number) in the wp_cache_post_id_gc
function:prune_super_cache( $dir, true, true );