mirror of
git://holbrook.no/eth-monitor.git
synced 2024-11-24 12:36:47 +01:00
Reactivate cache rpc
This commit is contained in:
parent
f59fd52d43
commit
b8fe525cbe
@ -347,9 +347,12 @@ def process_renderer(settings, config):
|
|||||||
|
|
||||||
|
|
||||||
def process_cache_rpc(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'):
|
if not config.true('_FRESH'):
|
||||||
rpc = CacheRPC(settings.get('RPC'), cache_store)
|
rpc = CacheRPC(settings.get('CONN'), settings.get('CACHE_STORE'))
|
||||||
settings.set('RPC', rpc)
|
settings.set('CONN', rpc)
|
||||||
return settings
|
return settings
|
||||||
|
|
||||||
|
|
||||||
@ -372,6 +375,7 @@ def process_sync(settings, config):
|
|||||||
|
|
||||||
def process_cache(settings, config):
|
def process_cache(settings, config):
|
||||||
settings = process_cache_store(settings, config)
|
settings = process_cache_store(settings, config)
|
||||||
|
settings = process_cache_rpc(settings, config)
|
||||||
return settings
|
return settings
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user