Cache vs. Membership 2 Pro shortcodes

Working with Membership 2 Pro I am trying to configure short-codes such that certain content shows or does not show based on a site users membership subscription status. An example being:

[ms-protect-content id="2363" access="no" silent="yes"]
<div style="margin-bottom: 0px;">[themify_button style="rounded flat" link=""]JOIN LEARNERS ACADEMY TODAY![/themify_button]</div>

I seem to be getting sporadic conflicts and my question relates to caching. I'm hosting this site with WPEngine and have their server caching and CDN activated to speed the site up (which is important) + I also have browser caching activated within the themify theme. If you have any advice on these things, it would be appreciated.

  • Adam Czajczyk
    • Support Gorilla

    Hello Jez,

    I hope you're well today and I apologize for the delay.

    The CDN usually shouldn't be an issue but if it comes to cache, that might be different. WPEngine has quite a strict caching policy but still, I know of many members running Membership 2 Pro (and also some of my fellow staff here) on WPEngine's servers without issues.

    If I was about to prioritize possible issues, I'd start with browser caching built into the theme. Shortcodes are always executed on "server side" because they are processed by WordPress PHP scripts. Caching might cause that processing to be skipped.

    If you disable browser caching temporarily, does it help with the issues?
    Could you please also tell me a bit more about the nature of these issues/conflicts?

    It would also be great if you could enable support access for me so I could take a closer look at your site.

    You can grant support access via WPMU DEV > Support > Grant Support Access.

    Best regards,

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.