Clear the sql cache for dns and dhcp, fixing #42.
[invirt/packages/invirt-dhcp.git] / code / dhcpserver.py
index 3133643..439a6f2 100755 (executable)
@@ -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)