Commit 0f6ea9a2 authored by git's avatar git Committed by MiSc

Issue #2944565 by ph53, MiSc: Node update not clear varnish cache

parent c0eb2ec9
......@@ -37,7 +37,7 @@ class VarnishCache implements DrupalCacheInterface {
// Check that we really want to do a cache flush.
if (!module_exists('varnish') ||
(variable_get('varnish_cache_clear', VARNISH_DEFAULT_CLEAR) == VARNISH_NO_CLEAR) ||
!variable_get('varnish_flush_cron', 0) ||
((!variable_get('varnish_cache_clear', VARNISH_DEFAULT_CLEAR)) && !variable_get('varnish_flush_cron', 0)) ||
(variable_get('varnish_flush_cron', 0) && !lock_may_be_available('cron'))) {
return;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment