From: Eric Price Date: Sat, 29 Mar 2008 01:49:31 +0000 (-0400) Subject: Clear the sql cache for dns and dhcp, fixing #42. X-Git-Tag: sipb-xen-dhcp/1^0 X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-dhcp.git/commitdiff_plain/fa982c0f1c3339e86ed4a69b3e9c735d0df66519 Clear the sql cache for dns and dhcp, fixing #42. svn path=/trunk/packages/sipb-xen-dhcp/; revision=300 --- 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)