def enable_caching(_option, _opt_str, _value, _parser):
 debug.debug('Enabling Caching')
 global CACHE
 CACHE = CacheTree(CacheStorage(), invalidator=Invalidator())
 config.CACHE = True

def enable_caching ( _option , _opt_str , _value , _parser ) : debug . debug ( 'Enabling Caching' ) global CACHE CACHE = CacheTree ( CacheStorage ( ) , invalidator = Invalidator ( ) ) config . CACHE = True
turns off caching by replacing the tree with one that only takes blockingnodes .