Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hey guys,
It looks like some debug code made it into the 1.x-dev release. DSM is a devel specific function, and probably shouldn't be in the release here unless a dependency is going to be set on it.
here's one of the blocks from the commit made on 5/11 with it. DSM is the last line there:
diff --git a/varnish_tag_invalidate.module b/varnish_tag_invalidate.module
index a0b0788..f1a831e 100644
--- a/varnish_tag_invalidate.module
+++ b/varnish_tag_invalidate.module
@@ -22,6 +22,67 @@ function varnish_tag_invalidate_add_tags($tags) {
}
/**
+ * Triggers the purge of tags
+ *
+ * @param array $tags
+ */
+function varnish_tag_invalidate_purge_tags($tags) {
+ module_load_include('inc', 'purge');
+
+ $raw_hosts = variable_get('varnish_tag_invalidate_hosts', '');
+ $hosts = array_map('trim', explode("\n", $raw_hosts));
+
+ $product = varnish_tag_invalidate_cartesian_product(array('tag' => $tags, 'host' => $hosts));
+
+ $urls = array_map('varnish_tag_array_map_tag', $product);
+
+ dsm($urls);
Comments
Comment #2
wwhurley CreditAttribution: wwhurley at Forum One commentedWhoops. Thanks for the catch. Removed debugging code. See http://cgit.drupalcode.org/varnish_tag_invalidate/commit/?id=7cc1628.