Dear author,
I am wondering if it is possible to exclude certain pages from being cashed by varnish. I am struggling to get my Woocommerce Menu Cart Button to work on multisite.
Basically I have 1 site in 4 languages. Each language version has it’s own woocommerce webshop. Each language version has a menu cart button in the header. The problem I am having:
When adding a product to language version 1 woocommerce cart, it updates the cart menu button accordingly. But when I want to read a post in another language, I have to switch sites. After switching sites, the menucart button gets cashed and transferred to the other site, replacing the menu-cart-button on that particular page.
I then have (for example) a German website with a header button that says 1 item added, in stead of whatever the German translation of that phrase may be. Clicking the button will take me back to the woocommerce shop that I have originally placed the order with.
What I want it to do however, for each version of the site (languages), is clear the menu-cart cache, so that the appropriate menu-cart-button displays on the site it was intended for.
Your help is much appreciated.
Bart
]]>When I use the “Clear this Page” option on the front page or any of the category pages on any of my sites, it sends an IDs from one of posts displayed on the page in question, but doesn’t purge the page itself. I’d really love to have this option work so that I can purge only my front page after making template changes that only affect the front page, or so that when categories for some reason don’t refresh, I can purge them manually without affecting the whole site.
I have a few really large sites… this is fairly important in my case, so I don’t have to clear my entire cache, then crawl my site every time one I have to clear a category or front page cache.
]]>For some reason, my cache is getting cleared significantly too often, rendering varnish useless. I’m getting “was banned” missed fetches on almost every page load… when my cache TTL is set to 24h. I only want the cache to clear when I’ve published, edited, or unpublished/deleted a post. Is there any way to do this?
]]>When Adding content to a page I am getting this white page with the following content:
Cache Succeddfully Cleared
Cache Succeddfully Cleared
Warning: Cannot modify header information - headers already sent by (output started at /home/nwhcmud1/public_html/wp-content/plugins/better-wp-varnish/better-wp-varnish.php:201) in /home/nwhcmud1/public_html/wp-includes/pluggable.php on line 876
(Hum, also notice the misspelled word Sucessfully in the error message)
Flavor of Varnish is: Varnish Version: 3.0.3-unixy
The ‘Varnish – Clear All’ button in the Admin page works without issue.
Any help as to the cause of the inability to add changes to pages (haven’t tried changing posts yet) would be appreciated.
]]>wp super cache cloudflare ??
]]>Hello,
Can you please let me know whether this plugin purges the categories also?
Thanks,
Paul
Hello,
I’m running into this problem, could you give me a pointer where to start troubleshooting?
]]>Hi there. This plugin seems to be exactly what I need, but unfortunately I can’t get it to work.
I’ve installed and configured the plugin as per instructions.
However, each time I add a new post, or use the Clear All link from the Admin bar, (haven’t tried adding comments etc), I get the message “ERROR: Could not clear cache. Contact your server administrator if this error persists.” and no objects are purged from the cache.
Just to be clear, in the plugin configuration, I’ve entered the IP and port of the Varnish admin interface. I can see network traffic going there as expected when I publish a post or use the Clear All link.
Where should I look to debug this further? Does my Varnish config need any changes?
I’m using WP 3.5 and Varnish 3.0.3 btw.
Thanks for reading
]]>Guess never really seen the need for this on my Varnish server.
Can you explain a bit better why this is necessary as a plugin?
Many Thanks,
Jim Walker
[signature moderated]