Tips and Tricks HQ Support Portal › Forums › WP eMember › WP eMember Tweaks › How to serve cached pages only to those that have logged in through eMember
- This topic has 3 replies, 2 voices, and was last updated 11 years, 3 months ago by admin.
February 4, 2012 at 11:51 pm #5479lockandrolltennisMember
I have some pages with videos that I want cached because the pages can take around 7 seconds to load. The problem is if a non-user finds out the url they also get the cached page. Vice-versa if a non-user hit the url and got redirected to the login page, now if a logged in member went to that page they would get the login page instead of the videos.
I only want to serve cached pages to logged in users. The pages I want cached have nothing user specific on them.
I’ve tried wp-cache, super cache, db cache, and quick cache. Quick cache seems to have a lot of options but not “serve cached pages only to logged in users”
How do I accomplish this with eMember.February 5, 2012 at 4:37 am #41627adminKeymaster
Our choice of caching plugins are W3 Total Cache or WP Super Cache:
Using the plugins with W3 Total Cache – https://support.tipsandtricks-hq.com/forums/topic/using-the-plugins-with-w3-total-cache-plugin
Using the plugins with WP Super Cache – https://support.tipsandtricks-hq.com/forums/topic/using-the-plugins-together-with-wp-super-cache-plugin
You can’t serve cached page to logged in users. If the pages on your site is taking too long to load it indicates another problem that you should investigate and try to fix them in the root. The most common causes for your pages to load too long are usually the following:
– Your server is too slow
– Your account is on on an over populated shared hosting account
– Your hosting provider might be limiting the CPU usage
– You have low RAM memory allocated for your PHP scripts
Yes, a caching plugin improves the performance but even without it your pages should load within 2 to 4 seconds unless you are getting very high amount of traffic every day.February 8, 2012 at 4:17 am #41628lockandrolltennisMember
Yes, I can serve cached pages to logged in users if the pages have nothing member specific. I just don’t want them also served to non-members. Is there no hook or something into the order of serving pages?February 9, 2012 at 1:36 am #41629adminKeymaster
You simply integrate eMember with WordPress users then check the option to serve cached pages to logged in users (if the caching plugin has the option to do so).
This page will explain how you can integration WordPress users with eMember:
- You must be logged in to reply to this topic.