Commit 5158f94
src/config.py
@@ -54,6 +54,7 @@ class ENABLE: # see fine-grained permission in `src/permission.py`
BOTS = os.getenv("ENABLE_BOTS", "1").lower() in ["1", "y", "yes", "t", "true", "on"]
USERS = os.getenv("ENABLE_USERS", "1").lower() in ["1", "y", "yes", "t", "true", "on"]
SEND_AS_REPLY = os.getenv("ENABLE_SEND_AS_REPLY", "1").lower() in ["1", "y", "yes", "t", "true", "on"] # Send as a reply to the original message
+ CACHE_PRICE_SYMBOLS = os.getenv("ENABLE_CACHE_PRICE_SYMBOLS", "0").lower() in ["1", "y", "yes", "t", "true", "on"]
class PREFIX:
src/main.py
@@ -105,7 +105,8 @@ async def main():
async def scheduling(client: Client):
cache.evict() # delete expired cache
cleanup_old_files()
- await match_symbol_category() # to cache all supported symbols
+ if ENABLE.CACHE_PRICE_SYMBOLS:
+ await match_symbol_category() # to cache all supported symbols
# custom crontab jobs
now = nowdt(TZ)