Is your feature request related to a problem? Please describe.
Currently, token attribute values are stored in token_cache table and are refreshed from the blockchain data when the cache's TTL expires. If API container is down for long period, the TTL for all cache records will expire. Consequently, after restarting the container, requests to the following APIs may take a long time due to the need to retrieve and refresh cache.
GET: /share/tokens
GET: /bond/tokens
Describe the solution you'd like
Refreshing data targeted by token_cache regularly or so to mitigate response delays for these API requests.
Is your feature request related to a problem? Please describe.
Currently, token attribute values are stored in
token_cache
table and are refreshed from the blockchain data when the cache's TTL expires. If API container is down for long period, the TTL for all cache records will expire. Consequently, after restarting the container, requests to the following APIs may take a long time due to the need to retrieve and refresh cache./share/tokens
/bond/tokens
Describe the solution you'd like
Refreshing data targeted by
token_cache
regularly or so to mitigate response delays for these API requests.