Skip to content

Commit c310f56

Browse files
author
Pierre Buyle
committed
Include only one of microcache_[proxy|fcgi].conf or icrocache_[proxy|fcgi]_auth.conf file, not both.
1 parent 015e4e2 commit c310f56

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

templates/apps/drupal/drupal.j2

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -290,10 +290,11 @@ location @drupal-no-args {
290290
include apps/drupal/fastcgi_no_args_drupal.conf;
291291
fastcgi_pass phpcgi;
292292

293-
{%- if nginx_drupal_microcache %}
293+
{% if nginx_drupal_microcache %}
294+
{% if not nginx_drupal_microcache_auth %}
294295
## FastCGI microcache.
295296
include apps/drupal/microcache_fcgi.conf;
296-
{%- if nginx_drupal_microcache_auth %}
297+
{% else %}
297298
## FCGI microcache for authenticated users also.
298299
include apps/drupal/microcache_fcgi_auth.conf;
299300
{%- endif -%}
@@ -306,9 +307,10 @@ location @drupal-no-args {
306307
proxy_set_header Connection '';
307308

308309
{%- if nginx_drupal_microcache %}
310+
{%- if not nginx_drupal_microcache_auth %}
309311
## Proxy microcache.
310312
include apps/drupal/microcache_proxy.conf;
311-
{%- if nginx_drupal_microcache_auth %}
313+
{% else %}
312314
## Proxy microcache for authenticated users also.
313315
include apps/drupal/microcache_proxy_auth.conf;
314316
{%- endif -%}

0 commit comments

Comments
 (0)