I use W3 total for page cache, Woocommerce is installed.
Pages are cached for both guests and logged in users, the form for sending a comment to the product is cached accordingly, for authorized users the form has fewer fields, as a result the form is not always displayed correctly.
Tell me how to solve this kind of problem in Wordpress?
With fragment caching, I have a clue how to do this, but most likely there are other options? Can I make a different cache for guests and logged in users ...
The same problem in the comments to posts, etc., I will be grateful for the link to the material where this problem is solved.
/wp-admin/admin.php?page=w3tc_pgcache_cookiegroups. You can also add your own fragments. - KAGG Design