Since this patch went into the dev branch, I get the following error message when trying to clear cache's on my development environment (where I don't have Varnish setup).

Exception: Invalid or missing cache bin specified: <em class="placeholder">external_varnish_page</em> in DrupalDatabaseCache->clear() (line 516 of /path/to/mysite/includes/cache.inc).

My setup is that I have different settings.php files for production/staging/development environments.
I have only been including the necessary Varnish config on my production and staging settings.php, and development would work gracefully without it. But now that we have a varnish_flush_caches(), we're getting trouble.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Leon Kessler’s picture

Leon Kessler’s picture

Leon Kessler’s picture

Title: Error clearing caches when Varnish is missing from settings.php » Error clearing Drupal caches when Varnish is missing from settings.php
lauriii’s picture

Status: Active » Needs review

The patch applies and works

mgifford’s picture

Looks like a simple enough change. Glad to see it works against the dev version.

MiSc’s picture

Status: Needs review » Reviewed & tested by the community

Tested and reviewed.

helmo’s picture

+1, fixes the error

Schnitzel’s picture

+1

JeremyFrench’s picture

Status: Reviewed & tested by the community » Fixed

Thanks all, this is committed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.