Exclude pages or URL's from Varnish
I would like to suggest having the option to exclude certain pages or URL's from Varnish. Most of the time Varnish is great, but in some instances it can cause issues. One particular instance right now is a very typical Wordpress + WooCommerce setup where Varnish causes the site to not save items to the cart. I did heaps of testing and it's directly a Varnish issue.
However it would be great to keep Varnish on parts of the site where it doesn't conflict, because the performance gains are fantastic. Would be a great addition to the console.
Cheers'
~ Daniel
This is now live:
https://support.cloudways.com/how-to-exclude-url-from-varnish/
Along with including/excluding cookies:
https://support.cloudways.com/how-to-include-or-exclude-cookies-from-varnish/
Cloudways Team
-
Dan
commented
Daniel, I had the same issue with Varnish because I installed a normal Wordpress Application in Cloudways and then added Woocommerce manually.
That cause my Woocommerce Carts to be wrongly cached too.Try "Add App" -> "Wordpress with Woocommerce"
Migrate then your Website with Migrator Plugin to the newly created instance. -
christophe
commented
Hello, I have disabled Varnish too, because this cache system can't work with buddypress and memberships website. I hope a solution will be found for have high traffic website with buddypress enabled. Regards
-
AdminCloudways
(Admin, Cloudways)
commented
We are taking this into this quarter targets. We will further update here when we start working on it.
Cloudways Team
-
Anonymous
commented
I need this too. I just had to disable Varnish because it is not able to cache my front page properly. Because of that, I can't use Varnish on my entire website. I also can't use Varnish on any other website on the same server.
-
Anonymous
commented
Seriously Cloudways, please get on this. Trying to use a major plugin that uses cookies, other hosts will disable varnish for you on specific pages, today your support was zero help.
-
Michael Dorchain
commented
It has nothing to do with premium plugins or not. Currently the varnish configuration is static and doesn't allow exceptions. This simply means in some scenario you will encounter issues due to the rigidity of the configuration. Cloudways needs to allow url exceptions and cookie white listing like some other providers using varnish do.
-
Michael Dorchain
commented
Any news on this?
Unless you're running a site without logged in users, varnish is totally useless.
Not having the possibility to exclude urls from the cache is really a bummer :( -
Raphael
commented
Please, this feature is very important. I'm having problems with Paid Membership Pro too.
-
Phantom
commented
+1
Please add ability to exclude url in Varnish as having problems with certain WP plugins not working completely due to Varnish and simply excluding url would fix the issue. Thank you.
-
Anonymous
commented
I have problems with social login functions on my website. Please add the possibility to exclude urls!!!!!!!!!!
-
Michael Dorchain
commented
Not having the possibility to exclude url means having issues with wishlist, compare features on most woocommerce shop unless they are ajax based.
The page caching already include the possibility to handle exclusions why not in varnish? -
Greg
commented
Other hosts that offer Varnish, like SiteGround, have the ability to exclude URL patterns from Varnish. It's unbelievable to me that this option isn't available, because it can mean suddenly finding you need to disable caching for your entire site because of one bit of functionality. I'm grateful for the free trial so I could discover this limitation before signing up. It's a real shame, because I wanted to start setting up all my new clients on CloudWays.
-
Jason
commented
This would be a great feature. I have a friend running a forum on cloudways and having varnish enabled causes a login loop.
-
Anonymous
commented
Why should your hosting provider offer support for every random plugin that you might want to download and install? WPMU dev isn't as big as Woo and there are thousands of companies offering large stacks and all sorts of other plugins. If they don't make their plugins compatible with Varnish or Nginx, that isn't for Cloudways to fix.. Bug the developers you paid for the plugin to see why it doesn't work on your set up..
-
AdminCloudways
(Admin, Cloudways)
commented
Now when you disable varnish globally (server wide), disable button at application level is dimmed.
Cloudways Team
-
AdminCloudways
(Admin, Cloudways)
commented
Agree. We will get this done. Adding it to new sprint.
Cloudways Team
-
Bill
commented
Today your staff refused to even look at a plugin that was not WooCommerce. WooCommerce isn't that great. Marketpress is better for some purposes but it is part of the WPMU DEV stack. A premium paid plugin repository for Wordpress. One of the largest of it's kind.
I get you dont want to support some third party plugins and understand why I even do the same... But to not even look at it when it's fully paid plugin from one of the largest plugin providers for Wordpress is just lazy on Ejaz's part. :(
My concern to him was that varnish was not working correctly and I proved this with widgets not loading as they should, he just didn't really help tried to dump it all back on me but how am I to know exactly how the server is set up on the varnish level when I am forced to install W3C (which is a great plugin when its configured correctly but requires server admins to assist with me to resolve an issue like this) it requires knowledge both from the wordpress admin and the server admin. Felt like a 1 way street today which is a rare thing for cloudways.
-
Clouwd
commented
Just one thing; if you disable Varnish globally, at server TAB, the application button still available.
I think that if Varnish is disabled globally on the server, application button should detect it and should be disabled too.
-
Tevya Washburn - FS
commented
Would be nice if this setting were coppied to clones of an app. I just tested out the new feature to clone from one server to another. It worked great, except Varnish was disabled on the original, but enabled on the cloned app. Not a big deal, but would be helpful.
-
Anonymous
commented
very useful. thank you very much