def clearCacheAll(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_all() control.infoDialog(control.lang(32057).encode('utf-8'), sound=True, icon='INFO')
def clearCacheAll(self): control.idle() yes = control.yesnoDialog(control.lang(32056)) if not yes: return from resources.lib.modules import cache cache.cache_clear_all() control.infoDialog(six.ensure_str(control.lang(32057)), sound=True, icon='INFO')
def clearCacheAll(self): control.idle() yes = control.yesnoDialog("Sind Sie sicher?", '', '') if not yes: return cache.cache_clear_all() from resources.lib.modules.handler.requestHandler import cRequestHandler cRequestHandler('dummy').clearCache() control.infoDialog("Vorgang abgeschlossen", sound=True, icon='INFO')
def clearCacheAll(self): control.hide() yes = control.yesnoDialog(control.lang(32077), '', '') if not yes: return try: from resources.lib.modules import cache cache.cache_clear_all() control.notification(title='default', message='All Cache Successfully Cleared!', icon='default', sound=(control.setting('notification.sound') == 'true')) except: log_utils.error() pass
def clearCacheAll(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_all() control.notification(title='default', message='All Cache Successfully Cleared!', icon='default', sound=notificationSound) except: log_utils.error() pass
def clearCacheAll(self): control.hide() if not control.yesnoDialog(control.lang(32077), '', ''): return try: from resources.lib.modules import cache if cache.cache_clear_all(): control.notification(message=32089) 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 clearCacheAll(self): control.idle() yes = control.yesnoDialog("Sind Sie sicher?", '', '') if not yes: return cache.cache_clear_all() control.infoDialog("Vorgang abgeschlossen", sound=True, icon='INFO')