nexcess/magento-turpentine — pull request #281 by jeroenvermeulen (2013-08-03 23:16:26+00:00)
Title: Added filters to prevent flush/ban matching all URLs like (?:myproduct|) and (?:)

Hi Turpentine Team,

On our site we had the problem that the whole Varnish cache got flushed upon the save of some single products.
The problem turned out to be that sometimes the URL for a product is empty in our Magento, because the products come from an import.

That is why I created a fix to solve this.
I added filters to prevent flush/ban matching all URLs like (?:myproduct|) and (?:) which cause the whole cache to be flushed. Notice the pipe sign before the closing parenthesis of the first example.

Please merge my changes into the core development branch of the plugin.

Kind regards,
Jeroen Vermeulen.