WordPress.org

Ready to get started?Download WordPress

Forums

WP Super Cache
Clear Index.php On Comment (3 posts)

  1. lykaon
    Member
    Posted 3 years ago #

    My theme shows the number of comments on a post on index.php. So at the end of a post, it will say something like "5 Comments."

    When I turn on wp-super-cache, this doesn't get updated when someone leaves an actual comment. So the front page may say 5 comments, but there may actually be 10 or 20. The page itself is updated properly; it's just the main page that isn't. So a user may not know there are new comments for them to read by just visiting the main site.

    Is there some way to delete the index.php cache whenever someone comments on a post? Alternatively, is there some optimum configuration tweaks to wp-super-cache to mitigate this sort of thing?

    Thanks for any help.

    http://wordpress.org/extend/plugins/wp-super-cache/

  2. EnemyT2
    Member
    Posted 3 years ago #

    I am also interested in this problem.
    I need to update index.php (main page) after comment added anywhere.

  3. Donncha O Caoimh
    Member
    Plugin Author

    Posted 3 years ago #

    The front page is supposed to update when comments are left. Do you have "Only refresh current page when comments made." enabled on the settings page? If not, use the debug system in the plugin to figure out what happens when a comment is left.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic