Кэширование списка заготовок

This commit is contained in:
2024-12-01 20:41:02 +03:00
parent b3f856b401
commit b58fcc7d0e
5 changed files with 179 additions and 2 deletions

View File

@@ -10,7 +10,8 @@ app.secret_key = 'suplex'
app.config.update(
db_config=json.load(open(os.path.join(os.path.dirname(__file__), 'data/config.json'))),
db_access=json.load(open(os.path.join(os.path.dirname(__file__), 'data/db_access.json')))
db_access=json.load(open(os.path.join(os.path.dirname(__file__), 'data/db_access.json'))),
cache_config=json.load(open(os.path.join(os.path.dirname(__file__), 'data/redis_config.json')))
)
app.register_blueprint(requests_bp, url_prefix='/requests')