Comment feedback for logged out users
-
It’s not the VCL 🙂 It’s the cache only purges when the post is updated. Approving a comment does that (since it updates post meta info) but when it’s in spam or moderation, it does not. Also since the user isn’t logged in, the cookies are ignored for the most part.
I’ll see if there’s a friendly way to do that, without busting cache too much. The goal is always to only purge what needs purging. But since I’m going over all of that in version 3, and planning for a re-do of a lot in version 4, it’s on the table officially now!
Thanks Mika. Makes perfect sense from a technical POV, but — for most of my clients — they’d consider this an important element for their users. Please do add it to roadmap.
I was looking at all the different Varnish plugins and when I saw your name attached this one, decided it was the one for me. Fast, clear and responsive forum support… awesome!
Closing.
I can see that being a gotcha for them. The catch is on a really active site, or one being hammered by spam, you’d be having your cache flushed for that page very often, which might cause server churn and crashing.
As a temporary stopgap, I would edit the theme so above the submit button (or right below) it says “Your comment may be held for moderation. If it does not show up immediately, just be patient.” or such.
A good short-term solution: thanks.
I know you’ve worked with Varnish and WooCommerce compatibility before. Is there any forum where I can pick your brains or pay for your time to look into some things for me with getting a smooth set up for them?
We at DreamHost published our VCLs here: https://github.com/dreamhost/varnish-vcl-collection
But I have to say, I’m the WP expert on this joint venture, not the Varnish one 🙂 My coworker has to deal with me asking him to “Explain this like I’m 5, again?” all the time.
Somewhat good news for you. The new version (3.0 should push it later today), is more ‘exact’ and instead of purging so many pages, it’s limited to the post page, the front page, and any categories and tags associated with the page. So in THEORY, this won’t be too horrible for you on a larger scale, so I may be able to put in a special check for pending comments.
That said, I’ve seen this same woe on almost every cache plugin, so I want to study up on how they do it. If you’ve ever tried to reverse engineer those plugins before, you know my pain.
Javascript could handle this? (no idea how…)
The topic ‘Comment feedback for logged out users’ is closed to new replies.
(@indietravel)
12 years, 9 months ago
Hi,
I’m testing a set-up with this and running into one recurring issue:
If a logged-out user makes a comment it passes through to moderation, but the user gets no feedback. I was hoping this plugin would help break the cache in that instance so we got the “Your comment is in moderation” message.
Any advice welcome. vcl is at: http://pastebin.com/3drPyf2f
http://ww.wp.xz.cn/plugins/varnish-http-purge/