Tips and Tricks HQ Forum

Support Forum for Tips and Tricks HQ Products

Register or log in - lost password? (Having an issue with the forum login?)

Search the Forum

Tips and Tricks HQ Forum » WP eMember » WP eMember Tweaks

How to serve cached pages only to those that have logged in through eMember

(4 posts) (2 voices)
  • Started 3 months ago by lockandrolltennis
  • Latest reply from admin
  • Possible Solutions (Related Topics):
    1. eMember+eStore: all of sudden my site wont log in/show content to members
    2. WP Affiliate: how to have affiliates automatically logged in *without* eMember?
    3. How to protect Wordpress "pages" using eMember "protect categories"?
    4. eMember is not showing restricted content for logged in member
    5. Display username when logged into emember

Tags:

No tags yet.

  1. lockandrolltennis
    Member

    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.

    Posted 3 months ago #
  2. admin
    Key Master

    Our choice of caching plugins are W3 Total Cache or WP Super Cache:

    Using the plugins with W3 Total Cache - http://www.tipsandtricks-hq.com/forum/topic/using-the-plugins-with-w3-total-cache-plugin

    Using the plugins with WP Super Cache - http://www.tipsandtricks-hq.com/forum/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.

    Posted 3 months ago #
  3. lockandrolltennis
    Member

    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?

    Posted 3 months ago #
  4. admin
    Key Master

    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:
    http://www.tipsandtricks-hq.com/wordpress-membership/using-emember-with-another-plugin-that-uses-the-wordpress-user-roles-350

    Posted 3 months ago #

RSS feed for this topic

Reply

You must log in to post.

Tips and Tricks HQ  | WP Shopping Cart  | WP Affiliate Software  | WordPress Membership Plugin