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:
parent
f59fd52d43
commit
b8fe525cbe
@ -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
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user