22

Conflict With “Cache” Related Plugins

DAP Now Works With WP Super Cache

If you’re having weird issues – like members logging in and seeing other people’s profile information, or logging in as a valid user and being told “Sorry, you don’t have access to this content” – then it’s probably because of a “cache” plugin.

Do not use cache plugins on your membership site

DAP now fully works with WP Super Cache (and possibly other cache plugins too).

You just need to make sure that you exclude your member content (including the login page) from being cached.

Cleaning Up After Your Cache Plugin

Follow the steps below to clean up some the junk left behind by cache plugins (regardless of whether you see them in your plugins section, and regardless of whether they are currently active).

1) You wish to disable your cache plugin that is currently enabled

2) You previously had one enabled at some point in the past

3) You don’t believe you ever had a cache plugin enabled in the past

4) You were redirected to this page by the DAP support team because of potential caching-related issues

  1. De-activate the plugin if it is still active
  2. Open your wp-config.php file.
  3. If there are lines in there that look like this…
    define(‘WP_CACHE’, true); //Added by WP-Cache Manager
    define( ‘WPCACHEHOME’, ‘/home/wp-content/plugins/wp-super-cache/’ ); //Added by WP-Cache Manager
  4. Then comment out both lines, by adding a “//” at the beginning of each line, like this.
  5. //define(‘WP_CACHE’, true); //Added by WP-Cache Manager
    //define( ‘WPCACHEHOME’, ‘/home/wp-content/plugins/wp-super-cache/’ ); //Added by WP-Cache Manager
  6. Go to your /wp-content/plugins/ folder. See if there’s a folder in there called “cache”. If yes, then rename it to “_cache”.

Now re-test whatever the issue was before, and it would have probably been resolved now.

That should do it.

If the issue still persists, let us know via a support ticket.

Click Here to Leave a Comment Below 22 comments
Daniel Couto - May 20, 2011

Well that sucks because my website without cacheing loads like moloassis and all the members are complaining! Is there another solution? Some sort of superpowered hosting? I’ve found that with the W3 Total Cache plugin and CDN, there has been a noticeable improvement in the site’s load speed.

Reply
Lia Huber - June 23, 2011

Does this apply to CDNs? Content delivery networks? We have that on my site for faster delivery of photos. Please let me know if that is an issue.

Thanks,
Lia

Reply
Veena Prashanth - June 23, 2011

Yes, this applies to CDNs as well.

Reply
Gav - July 26, 2011

Cache plugins have become an important part of running a WordPress site as php memory limits are now more easily hit. I’m sure you guys understand this far better than I, but I have run into that problem and have used a cache plugin to fix it.

So, if DAP can’t actually function when a cache plugin is installed (which seems to be required), my idea is this:

DAP can not be used on a public facing website that has lots of plugins activated (for drawing traffic, SEO features and social interactivity), hence DAP may better be placed on a separate site installation solely focused on the membership back-end of the public facing larger scale site.

Thus having 2 sites: DAP Membership site and WordPress public SEO site with all the plugin bells and whistles including cache plugin.

Thoughts?

Reply
Mitch - August 1, 2011

Are there any plans to create a cache module specifically for DAP? Our site is quite slow, and we had to purchase a virtual private server from dreamhost to handle the additional load times on the pages.

Being able to cache things would be so great!

Reply
Optimizing Your Blog For Speed — DAP Documentation - August 1, 2011

[…] a cache plugin has its place, but it’s certainly not for a membership site, where DAP will need to make calls to the database to figure out who’s viewing the content, […]

Reply
Paul G. - August 9, 2011

The are caching options available, some work, most don’t.

For example, w3 Total Cache for WordPress, you can enable some, but not all and it really depends on your setup. I enable the browser caching (except html) and minify features so that content is gzip’d and optimized at the data transmission level.

Then there’s Cloudflare. Depending on your content, your delivery styles etc., some caching will work you just have to put in the time to work out which.

Reply
Deivid Medeiros - August 10, 2011

– Is possible with wp-super cache to select what pages and URLs should be cached;
– Clear all cache files when a post or page is published;
– Dont cache pages for known users;
– Only refresh current page when comments made;

Reply
Paul G. - August 13, 2011

The problem with page cache and not caching for known-users is if you don’t have DAP sync’ing with WordPress, WP won’t know if the user is known or not.

Basically, all page caching is practically impossible.

You could however give CloudFlare a shot. I use it on all my sites. CDNs theoretically wouldn’t be a problem either since that’s not caching, but rather optimized content delivery.

Reply
Lia Huber - August 13, 2011

Gav, I think that’s a brilliant idea and would love others to weigh in too.

I think that might just solve a few problems I’ve been having! Thank you.

Reply
Paul G. - August 13, 2011

Have 2x wordpress sites is 2x the work. The benefit gained from some of the caching in my opinion isn’t worth it.

You can use different types of caching and services with DAP.

My opinion on this article is that it’s similar to “electronic devices on aircraft must be switched off for take-off and landing”.

Why? Even ones without radios? Because it’s the only way to support such a measure. All or nothing, so DAP says “nothing” because to support everyone’s individual configuration is impossible for them, of course.

Try out different caching approaches and see what works, and what doesn’t. You’ll be surprised at what will work…

Also, get better hosting – such as cloud hosting that you can scale with your site. Feel free to ask me any questions about that if you’re considering it.

Cheers,
Paul.

Reply
Deivid Medeiros - August 13, 2011

Gav, good idea!
We need to test if this works.

Reply
AJ - September 24, 2011

@Gav, Lia, Deivid

Fortunately I started with this set up without even realizing that caching may be an issue with membership sites 🙂

So I have one “master” site where I have installed DAP and rest of the sites are just the front end where people click on the buy buttons. They get redirected to the DAP site as soon as they make payment. It works beautifully for me.

You can do whatever you want with these front end sites (install caching plugin etc.)

Now since only paying members know about my “master” site, there isn’t much load on it and I need not worry about caching.

Reply
Deivid Medeiros - September 26, 2011

Thank you @AJ!
This is good.

Reply
Ashley G - December 22, 2011

I was able to make WP Super Cache work by going to the “Advanced” settings tab, and adding file-name restrictions for any page that uses membership functions. In my case, everything that has ‘members’ in the path is excluded. That did the trick for me, but will require that you have some structure conventions for what part of your site is under membership control.

Reply
Johnny - January 21, 2012

I’m not using the protected posts feature. So far, it looks like DAP functions with my W3 Total cache plugin.

Reply
Alexei - March 2, 2012

Hi, I did not install any cache plugs, But while I’m adding content- my site getting more and more slow.

My question is: how you guys read this article and what do you think about changing .htaccess file? Will this be OK with DAP installation ?
http://wordpress.org/extend/ideas/topic/wordpress-performance-improvement-that-does-not-require-a-plugin-simple-fix

Reply
Mitch - March 2, 2012

Check your host. I was having a lot of problems when I was on dreamhost – almost unusable. Since switching to media temple Dedicated Virtual server, things have been much better.

Check out my site running on media temple with dap: http://www.pencilkings.com – nice and fast.

Cheers,

Mitch

Reply
David - January 17, 2013

AJ, simple but brilliant idea! the two separate sites would be easy for me because i’m just running an online exam simulator behind the DAP wall. i have a VPS so running two sites won’t be a problem. thanks again for a great solution!

Reply
Ken Schultz - April 9, 2013

I’m thinking about Cloudflare – can that be customized to not cache membership sections of my website?
Anyone have experience with DAP and Cloudflare?

Mitch – great site – are you still happy with media temple server?

Reply
Anthony - July 10, 2013

@Ken – CloudFlare is awesome. It doesn’t cache pages, it’s primarily a CDN that caches static assets and distributes them across all its server locations. SO no worries about using it with DAP.

Anyway, my site uses nginx as a front-end proxy server and that caches css/js/images. Then I have W3 Total Cache doing compression and minification and Apache’s Mod Pagespeed crunching assets on the server.

So you definitely can use caching with membership sites. Every time I log into my DAP admin and see the “KACHING”: GOOD “CACHING”: BAD message I roll my eyes :/

Reply
Ken Schultz - July 10, 2013

Thanks for your response Anthony – I have changed my host to synthesis – they have CDN included- seems to be working great.

Reply

Leave a Reply: