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.

  • W3TC, as far as I know, resets pages / comments caches when updating. You may have a non-standard comment form. With user caching - there is a setting for /wp-admin/admin.php?page=w3tc_pgcache_cookiegroups . You can also add your own fragments. - KAGG Design
  • Cache flushes when updating, everything is in order, the problem is in the form cache before writing a comment. But cookiegroups, I think this is what we need !!! Thank you - Vlad

0