From fa982c0f1c3339e86ed4a69b3e9c735d0df66519 Mon Sep 17 00:00:00 2001 From: Eric Price Date: Fri, 28 Mar 2008 21:49:31 -0400 Subject: [PATCH] Clear the sql cache for dns and dhcp, fixing #42. svn path=/trunk/packages/sipb-xen-dhcp/; revision=300 --- code/dhcpserver.py | 1 + 1 file changed, 1 insertion(+) diff --git a/code/dhcpserver.py b/code/dhcpserver.py index 3133643..439a6f2 100755 --- a/code/dhcpserver.py +++ b/code/dhcpserver.py @@ -32,6 +32,7 @@ class DhcpBackend: self.database = database sipb_xen_database.connect(create_engine(database)) def findNIC(self, mac): + sipb_xen_database.clear_cache() for i in range(3): try: value = sipb_xen_database.NIC.get_by(mac_addr=mac) -- 1.7.9.5