]> git.mxchange.org Git - mailer.git/commitdiff
Fix for purge SQL
authorRoland Häder <roland@mxchange.org>
Fri, 5 Mar 2010 23:19:28 +0000 (23:19 +0000)
committerRoland Häder <roland@mxchange.org>
Fri, 5 Mar 2010 23:19:28 +0000 (23:19 +0000)
inc/classes/resolver.class.php

index 1010e2283c0bd8619cf18c0b96608938458b0a86..c133a56aba0e7aa36fe59c218aff901e8a880710 100644 (file)
@@ -120,7 +120,7 @@ class HostnameResolver {
        // Purge old entries
        function purgeEntries() {
                // SQL for cleaning up
-               SQL_QUERY("DELETE LOW_PRIORITY FROM `{?_MYSQL_PREFIX?}_dns_cache` WHERE UNIX_TIMESTAMP(`added`) < (UNIX_TIMESTAMP() - {%config:dns_cache_timeout%})",
+               SQL_QUERY("DELETE LOW_PRIORITY FROM `{?_MYSQL_PREFIX?}_dns_cache` WHERE UNIX_TIMESTAMP(`added`) < (UNIX_TIMESTAMP() - {?dns_cache_timeout?})",
                        __METHOD__, __LINE__);
        }
 }