did you enable the “logged-in user” option?
Yes. The box “Don’t show cached version to logged-in users” is checked.
are you using the native membership of wp or another plugin?
I’m using WooCommerce Pay Per View Content. It runs a script on Woocommerce product pages. If the user is logged in, and has either bought the product or has an active subscription, the lesson content is displayed instead of the product description and add to cart button.
If a non-logged in user visits a product page they will see the product description and add to cart button. If they then log in and return to the product page, they should see the lesson content. But every once in awhile all users see the logged-out version instead, including the standard WC Login button in the header, even though they are logged in. I’ve verified they’re seeing the cached page because deleting the cache restores the correct functioning.
did you try another cache plugin before?
I used to use WP Super Cache but I like your plugin better. I’ve removed WP Super Cache from the site.
Some additional information: I don’t know if this could be related but I’ve found this error in Heath Check:
The REST API request failed due to an error.
Error: [] cURL error 28: Operation timed out after 10001 milliseconds with 0 bytes received
I’ve contacted my webhost about it. Would this affect caching behavior?
do you get the “Logged-in users shown logged-out content” problem with the super cache as well?
This problem didn’t occur with WP Super Cache, but I got rid of it at least one year ago, and I’ve made a number of changes to the site since then.
Additional info: I followed my hunch about the issue being related to the cURL error 28 I had spotted two weeks ago. I spoke to the webhost and they suggested that was caused by was a plugin conflict. So I did some troubleshooting and discovered that when I deactivated the “Social Login Lite For WooCommerce” plugin, the cURL error 28 disappeared. Then when I reactivated WP Fastest Cache, the logging-out issue had disappeared as well! Are you aware of a conflict with this plugin? Would a cURL error 28 affect your plugin?
I thought all was well, but today my client said several users were still seeing the logged out product content. I could not duplicate this error, and I suspect it may be a browser cache issue. Does this sound right to you?
I have deactivated WP Super Cache to make my client happy, but I’d like to be able to use it. Any insights or help you could provide would be appreciated.
is everything ok when you disable “Social Login Lite For WooCommerce” ?