Support » Plugin: Lite Cache » Don't serve cache files to anyone who's left a comment

  • Your description states the following:

    Lite Cache works even with commenters, people who left a comment in the past. Other caching plugin usually are not able to serve cached content to commenters creating performance issues on higly partecipative blogs.

    Your current implementation serves cached pages to commenters. While the JavaScript snippet you prepend to the closing body tag checks for a commenter’s cookie and prefills in the comment form with their name, email, and url.

    The problem is, it doesn’t show the commenter his “awaiting moderation” comment. After comment submission, the page reloads and their comment disappears. This can lead to confusion, comment resubmission, and loss of return visitors by folks who do not realize their comment is awaiting moderation.

    I know this implementation is intended behavior, but I think it would be preferable to implement what all the other caching plugins do. Disable cache serving to anyone who’s recently left a comment. Perhaps, as you say, this can lead to performance issues for heavy comment activity sites, but how many sites really fall into that category? I would suggest, they’re in the vast minority, but this implementation is being applied to the majority of sites that would provide a better user experience if this wasn’t implemented. Perhaps provide an option for these rare situations instead of forcing the option on all sites.

    This would also allow the removal of the JavaScript snippet you’re appending to the end of the file. I know it’s harmless, but this snippet is executing for all visitors when 1) most aren’t commenters, and 2) it just feels wrong for a caching plugin to be adding stuff to the HTML source other than a comment tag at the end.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Totally right, I told it long time ago; unfortunately not mentioned. Although the plugin has a great concept inside, it’s not suitable for interactive sites.

    Plugin Author Stefano Lissa


    The “awaiting moderation” I don’t believe it’s possible to be shown while serving a cached page, so there would be an interceptor which is able to by pass the cache while coming back from a comment… or, of course, remove the caching for “commenters” at all.

    But the plugin was specifically written to do that. May be I can add an option to disable that behavior.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Don't serve cache files to anyone who's left a comment’ is closed to new replies.