Fix typo in DISKCACHE_DIR var name
continuous-integration/drone/push Build was killed Details

master
pictuga 2021-12-23 12:02:24 +01:00
parent 5ab45e60af
commit d17b9a2f27
2 changed files with 2 additions and 2 deletions

View File

@ -481,7 +481,7 @@ environment variables: `MYSQL_USER`, `MYSQL_PWD`, `MYSQL_DB`, `MYSQL_HOST`
- `CACHE=redis`: Redis cache. Connection can be defined with the following - `CACHE=redis`: Redis cache. Connection can be defined with the following
environment variables: `REDIS_HOST`, `REDIS_PORT`, `REDIS_DB`, `REDIS_PWD` environment variables: `REDIS_HOST`, `REDIS_PORT`, `REDIS_DB`, `REDIS_PWD`
- `CACHE=diskcache`: disk-based cache. Target directory canbe defined with - `CACHE=diskcache`: disk-based cache. Target directory canbe defined with
`DISKCAHE_DIR`. `DISKCACHE_DIR`.
To limit the size of the cache: To limit the size of the cache:

View File

@ -205,7 +205,7 @@ if 'CACHE' in os.environ:
elif os.environ['CACHE'] == 'diskcache': elif os.environ['CACHE'] == 'diskcache':
default_cache = DiskCacheHandler( default_cache = DiskCacheHandler(
directory = os.getenv('DISKCAHE_DIR', '/tmp/morss-diskcache'), directory = os.getenv('DISKCACHE_DIR', '/tmp/morss-diskcache'),
size_limit = CACHE_SIZE # in Bytes size_limit = CACHE_SIZE # in Bytes
) )