Hi!
Had the same problem:
If you did setup a dedicated blog page to show your posts via “Settings” -> “Reading” -> “Posts page”, hyper cache does not clear the blog cache.
Here is a working solution:
in plugin.php ~#262:
if ( $clean_home )
{
@unlink( $dir . '/index.html' );
@unlink( $dir . '/index.html.gz' );
@unlink( $dir . '/index-https.html' );
@unlink( $dir . '/index-https.html.gz' );
@unlink( $dir . '/index-mobile.html' );
@unlink( $dir . '/index-mobile.html.gz' );
@unlink( $dir . '/index-https-mobile.html' );
@unlink( $dir . '/index-https-mobile.html.gz' );
$this->remove_dir( $dir . '/feed/' );
// Home subpages
$this->remove_dir( $dir . '/page/' );
// Blog Pages (ERICH)
if ( intval( get_option( 'page_for_posts' ) ) > 0 )
{
$url = get_permalink( get_option( 'page_for_posts' ) );
$this->remove_dir( $dir . parse_url( $url, PHP_URL_PATH ) );
}
}
Tested and works!
@stefano: feel free to add it if you like ??
Erich
-
This reply was modified 5 years, 11 months ago by Erich Munz.
-
This reply was modified 5 years, 11 months ago by Erich Munz.