def clearCacheProviders(self): control.idle() yes = control.yesnoDialog(control.lang(32056).encode('utf-8'), '', '') if not yes: return from resources.lib.modules import cache cache.cache_clear_providers() control.infoDialog(control.lang(32057).encode('utf-8'), sound=True, icon='INFO')
def clearCacheProviders(self): #control.idle() # yes = control.yesnoDialog(control.lang(32056)) # if not yes: return from resources.lib.modules import cache cache.cache_clear_providers() control.infoDialog(control.lang(32057), sound=True, icon='INFO')
def clearCacheProviders(self): control.hide() yes = control.yesnoDialog(control.lang(32056), '', '') if not yes: return try: from resources.lib.modules import cache cache.cache_clear_providers() control.notification(title='default', message='Provider Cache Successfully Cleared!', icon='default', sound=(control.setting('notification.sound') == 'true')) except: log_utils.error() pass
def clearCacheProviders(self): control.idle() yes = control.yesnoDialog(control.lang(32056).encode('utf-8'), '', '') if not yes: return try: from resources.lib.modules import cache cache.cache_clear_providers() control.notification(title='default', message='Provider Cache Successfully Cleared!', icon='default', sound=notificationSound) except: log_utils.error() pass
def clearCacheProviders(self): control.hide() if not control.yesnoDialog(control.lang(32056), '', ''): return try: from resources.lib.modules import cache if cache.cache_clear_providers(): control.notification(message=32090) else: control.notification(message=33586) except: log_utils.error()
def clearCache(self): control.idle() yes = control.yesnoDialog(control.lang(32056).encode('utf-8'), '', '') if not yes: return self.close() from resources.lib.modules import cache if self.cacheType == 'base': cache.cache_clear() elif self.cacheType == 'providers': cache.cache_clear_providers() elif self.cacheType == 'meta': cache.cache_clear_meta() elif self.cacheType == 'search': cache.cache_clear_search() elif self.cacheType == 'all': cache.cache_clear_all() control.infoDialog(control.lang(32057).encode('utf-8'), sound=True, icon='INFO')
def clearCacheProviders(self): control.idle() yes = control.yesnoDialog("Sind Sie sicher?", '', '') if not yes: return cache.cache_clear_providers() control.infoDialog("Vorgang abgeschlossen", sound=True, icon='INFO')