lib/refinerycms_varnish/page_extension.rb in refinerycms-varnish-pages-0.0.2.1 vs lib/refinerycms_varnish/page_extension.rb in refinerycms-varnish-pages-0.0.2.2

- old
+ new

@@ -26,9 +26,14 @@ # by now we know that there is no link_url -> we expire this page only ActionController::Base.purge "/#{self.slug.name}" end + + if (path = RefinerySetting.find_or_set(:always_purge_path, '')).size > 0 + ActionController::Base.purge path + end + end end end \ No newline at end of file