4
0
mirror of git://holbrook.no/eth-monitor.git synced 2024-12-21 23:07:31 +01:00

Reactivate cache rpc

This commit is contained in:
lash 2022-11-10 13:43:08 +00:00
parent f59fd52d43
commit b8fe525cbe
Signed by: lash
GPG Key ID: 21D2E7BB88C2A746

View File

@ -347,9 +347,12 @@ def process_renderer(settings, config):
def process_cache_rpc(settings, config):
if str(settings.get('CACHE_STORE')) == 'Nullstore':
logg.debug('cache store is null, cache rpc proxy will be deactivated')
return settings
if not config.true('_FRESH'):
rpc = CacheRPC(settings.get('RPC'), cache_store)
settings.set('RPC', rpc)
rpc = CacheRPC(settings.get('CONN'), settings.get('CACHE_STORE'))
settings.set('CONN', rpc)
return settings
@ -372,6 +375,7 @@ def process_sync(settings, config):
def process_cache(settings, config):
settings = process_cache_store(settings, config)
settings = process_cache_rpc(settings, config)
return settings