- This topic has 1 reply, 2 voices, and was last updated 1 year, 1 month ago by .
Viewing 2 posts - 1 through 2 (of 2 total)
Viewing 2 posts - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.
WordPress Membership Plugin
Simple Membership Plugin › Forums › Simple Membership Plugin › LS Cache and SM. How do I cache?
Tagged: LS Cache
If I have LS Cache and have pages that are restricted do I have to add those pages to the exclude from caching? I don’t want the site to load a cached page if it will display content to a non member.
I have already added the logon, registration, profile etc pages to not cache.
Thanks
Excluding protected content from caching is generally the best approach. This ensures that visitors see content based on their access permissions. A cached page cannot dynamically apply membership-level restrictions, so for the most accurate results, it’s best to exclude all membership-related pages from caching. That’s the approach I personally recommend and use.
However, if your site is on a shared hosting plan that struggles under load, your hosting provider may strongly encourage the use of caching. In such cases, using cookie exclusion is a good compromise. With this method, you can configure the caching plugin to skip serving cached pages if a specific cookie (such as: wp_swpm_in_use) is present. This way, logged-in members will still see the correct content based on their membership level, avoiding confusion caused by cached pages.