Skip to content

Commit

Permalink
Use cache in auth
Browse files Browse the repository at this point in the history
  • Loading branch information
akariv committed Nov 18, 2023
1 parent 7252975 commit 2d0173c
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions budgetkey_api/flask_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
from flask import Flask, g as app_ctx, request, current_app
from flask_cors import CORS
from flask_caching import Cache
from flask_session import Session


def add_cache_header(response):
Expand Down Expand Up @@ -55,12 +54,6 @@ def create_flask_app(session_file_dir=None, cache_dir=None, services=None):
cache = Cache(config=config)
cache.init_app(app)

session = Session()
app.config['SESSION_TYPE'] = 'filesystem'
app.config['SESSION_FILE_DIR'] = session_file_dir or '/var/run/budgetkey-api/sessions'
app.config['SECRET_KEY'] = 'suchabadsecret'
session.init_app(app)

services = services or 'auth,es,lists,db'
services = services.split(',')

Expand Down

0 comments on commit 2d0173c

Please sign in to comment.