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 1010e22..c133a56 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__);
        }
 }