Changeset 11503 in genesis for tools/gformat.py


Ignore:
Timestamp:
Sep 26, 2012, 8:28:04 PM (12 years ago)
Author:
rick
Message:

Now with proper caching and shared memory.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/gformat.py

    r11444 r11503  
    1616# the heavy template lifting all the time.
    1717#
    18 # WSGIDaemonProcess gformat processes=2 threads=25
     18# WSGIDaemonProcess gformat threads=25
    1919# WSGISocketPrefix run/wsgi
    2020#
     
    108108
    109109
     110ileiden_proxies = []
     111normal_proxies = []
    110112datadump_cache = {}
    111113interface_list_cache = {}
    112114rc_conf_local_cache = {}
     115nameservers_cache = []
    113116def clear_cache():
    114117  ''' Poor mans cache implementation '''
    115   global datadump_cache, interface_list_cache, rc_conf_local_cache
     118  global datadump_cache, interface_list_cache, rc_conf_local_cache, ileiden_proxies, normal_proxies, nameservers_cache
    116119  datadump_cache = {}
    117120  interface_list_cache = {}
    118121  rc_conf_local_cache = {}
     122  ileiden_proxies = []
     123  normal_proxies = []
     124  nameservers_cache = []
    119125 
    120126
     
    629635
    630636
    631 ileiden_proxies = []
    632 normal_proxies = []
    633637def generate_rc_conf_local(datadump):
    634638  """ Generate configuration file '/etc/rc.conf.local' """
     
    847851
    848852
    849 nameservers_cache = []
    850853def get_nameservers(max_servers=None):
    851854  if nameservers_cache:
Note: See TracChangeset for help on using the changeset viewer.