1
0
angie-conv-image/angie/conf.dist/uwsgi/cache-bypass.conf.j2
2024-09-17 14:11:00 +03:00

15 lines
346 B
Django/Jinja

{#- TODO: precise quotation -#}
{%- set cache_bypass = j2cfg.cache_bypass or [] -%}
{%- if cache_bypass -%}
## disable (response) cache under following conditions
uwsgi_cache_bypass
{%- for v in cache_bypass %}
{{ v.__repr__() }}
{%- endfor %}
;
uwsgi_no_cache
{%- for v in cache_bypass %}
{{ v.__repr__() }}
{%- endfor %}
;
{%- endif -%}