Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @maciejmackowiak

    Thank you for your question and I am happy to assist you with this.
    Just to clarify, you would like that object cache is not cleared after the post updated and/or only purge objects on the specific page?
    Thanks!

    Thread Starter Maciej Ma?kowiak

    (@maciejmackowiak)

    Yes, the whole object cache should not be cleared on every post/page update.
    Only post related objects should be cleared on post update like for example here:
    https://core.trac.wordpress.org/browser/tags/5.6.2/src/wp-includes/post.php#L6937

     wp_cache_delete( $post->ID, 'posts' );
    wp_cache_delete( $post->ID, 'post_meta' );
    
    clean_object_term_cache( $post->ID, $post->post_type );
    
    wp_cache_delete( 'wp_get_archives', 'general' );

    Thanks!

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @maciejmackowiak

    Thank you for the information.
    Yes, this is expected behavior at the moment because in the past many websites became broken.
    However, I’ve opened a GitHub issue on your behalf in our repository. Please make sure to track the progress of the issue and feel free to add any comments or suggestions.
    Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Stop flushing whole object cache on post update.’ is closed to new replies.