• Hi Stefano
    When I add a new post it doesn’t appear in the blog page.
    I have enabled Do not cache pages with URIs
    and added /blog
    but it didn’t work
    Can you help me?

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Hi, did you clear your browser cache? If you didn’t, try clearing your browser cache. Let me know what happens.

    Regards

    Thread Starter tunisi45

    (@tunisi45)

    Of course I did. I tried also three different browsers and several different computers. Just to say that I did a lot of tests before writing to you.
    But I have to admit that today it’s partially functioning. If I write a new post it appears in the posts-page! The only issue that I have is that if I set the post to Draft it continues to appear in the posts-page, although if I go to the post I receive a 404 page not found. I have to trash the drafted post and then resume it to make it disappear from the posts-page. I can live with this issue, it is not a big deal, but if you have some time left could you give a look on one of your websites to see if it works for you if you put a post in Draft mode?
    Most important: I wanted to thank you for the great plugin you wrote and for having immediately responded to my request for help.
    Grazie Stefano

    Hi, sorry but I am not the developer. I just thought of helping out a bit since I also use this plugin myself.

    The only issue that I have is that if I set the post to Draft it continues to appear in the posts-page, although if I go to the post I receive a 404 page not found.

    I have never come across this issue myself. When you set a post to draft, no one will see that post except those who are editing the post. That is why you receive a 404 page not found error.

    Kind regards

    Plugin Author Stefano Lissa

    (@satollo)

    Could be the status change of a post does not clear the cache, I need to check it.

    Stefano.

    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.
    Plugin Author Stefano Lissa

    (@satollo)

    Thank you for your code,I’ll surely add it on next version!

    Stefano.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Blog’ is closed to new replies.