Best Practice to Stop Caching on One Site Only

I am using Easyengine to host several sites on my Linode VPS. I would like to temporarily stop caching for only one website installation while my client proofreads and edits pages and posts.

I see you can disable caching server wide by changing

set $skip_cache 0;

to

set $skip_cache 1;

on /etc/nginx/common/wpfc.conf

But, is there a good way to disable caching for just the one site?

Thanks,

Jim

Yes you can easily do that

cp -v /etc/nginx/common/wpfc.conf /etc/nginx/common/wpfc-disable.conf
vim /etc/nginx/common/wpfc-disable.conf
set $skip_cache 1;

Now open website on which you want to disable cache

ee site edit example.com
# replace following line
include common/wpfc.conf
include common/wpfc-disable.conf

I have no need to make one site skip cache at the moment (I prefer adding a cookie “wordpress_no_cache” via chrome extension when i need to skip for a bit on one site) but i did want to say thanks @miteshshah

Yet another great and quick response to a common challenge! I’ll probably need to do this soon.

Hi @marketfuse

It’s been a long time, and we haven’t heard from you. It looks like your issue is resolved.

I am closing this support topic for now. Feel free to create a new support topic if you have any queries further. :slight_smile: