Changeset 300


Ignore:
Timestamp:
Mar 28, 2008, 9:49:31 PM (17 years ago)
Author:
ecprice
Message:

Clear the sql cache for dns and dhcp, fixing #42.

Location:
trunk/packages
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/packages/sipb-xen-dhcp/code/dhcpserver.py

    r274 r300  
    3333            sipb_xen_database.connect(create_engine(database))
    3434    def findNIC(self, mac):
     35        sipb_xen_database.clear_cache()
    3536        for i in range(3):
    3637            try:
  • trunk/packages/sipb-xen-dns/code/dnsserver.py

    r270 r300  
    2424                                  expire=3600000, minimum=21600, ttl=3600)
    2525    def _lookup(self, name, cls, type, timeout = None):
     26        sipb_xen_database.clear_cache()
    2627        if not (name.lower() == self.domain or
    2728                name.lower().endswith('.'+self.domain)):
Note: See TracChangeset for help on using the changeset viewer.