def clearAllCaches (self): # Clear the cachers *only* for all open windows. # This is much safer than tryting to Kill all db's. for frame in g.windows(): c = frame.c if c.cacher: c.cacher.clearCache()
def clearAllCaches(self): ''' Clear the Cachers *only* for all open windows. This is much safer than killing all db's. ''' for frame in g.windows(): c = frame.c if c.cacher: c.cacher.clearCache() g.es('done', color='blue')