memegen.extensions   A
last analyzed

Complexity

Total Complexity 0

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 10
dl 0
loc 14
rs 10
c 0
b 0
f 0
wmc 0
1
import os
2
3
from flask_cors import CORS
4
from flask_caching import Cache
5
6
7
cors = CORS()
8
cache = Cache(config={
9
    'CACHE_TYPE': 'filesystem',
10
    'CACHE_DIR': 'data/cache/flask',
11
    # Heroku will cycle the filesystem every 24 hours and on every deploy
12
    'CACHE_DEFAULT_TIMEOUT': (60 if os.getenv('FLASK_ENV') == 'local'
13
                              else 99999),
14
})
15