]> git.mxchange.org Git - mailer.git/blobdiff - inc/filters.php
Network added, SVN fixed, misc:
[mailer.git] / inc / filters.php
index 21f2e59e86943b96a502b2073c7c0f2759e19233..36d843b78d8582cbcfc4df3b2fa89d3c17cc79dd 100644 (file)
@@ -963,5 +963,22 @@ function FILTER_FINISH_PAGE_HEADER () {
        $GLOBALS['page_header'] .= '</head>';
 }
 
+// Cleans up the DNS cache if sql_patches is at least 0.7.0
+function FILTER_CLEANUP_DNS_CACHE () {
+       // Is the latest version installed?
+       if (isExtensionInstalledAndNewer('sql_patches', '0.7.0')) {
+               // Load class file
+               loadIncludeOnce('inc/classes/resolver.class.php');
+
+               // Instance the resolver
+               $resolver = new HostnameResolver();
+
+               // Purge entries
+               $resolver->purgeEntries();
+
+               // Cute, isn't it? ;-)
+       } // END - if
+}
+
 // [EOF]
 ?>