[Plugin: WP Super Cache] Make known users anonymous breaks auth comments
Hi. I am working on a site that forces people to register to make a comment, and so therefore, there are lots of registered users that are browsing the site.
As I understand it, “don’t cache pages for known users” should always be checked, ie. I’m not even sure why it is an option to uncheck it, but I suppose someone asked somewhere along the way.
But, I was surprised to find out that supercache is removing the wp_logged_in_XXX cookie when POSTing to wp-comments-post.php. I think that behavior should be changed.
I am not familiar enough with wordpress to know if there are other pages that shouldn’t ever be made anonymous, but I think it would be safe to add that check in wp_supercache_cache_for_admins().
I haven’t tried it yet, but I’m thinking it is just a:
if($_SERVER["REQUEST_URI"] == "/wp-comments-post.php") return $cookies;
sort of thing.
Does that make sense?
- The topic ‘[Plugin: WP Super Cache] Make known users anonymous breaks auth comments’ is closed to new replies.