Skip to content

Commit

Permalink
fix syntax nginx error
Browse files Browse the repository at this point in the history
  • Loading branch information
fabienheureux committed Jan 23, 2025
1 parent cfa35e6 commit 81484f2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 0 additions & 1 deletion qfdmd/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,6 @@ def inner_decorator(func):
@wraps(func)
def inner_function(request, *args, **kwargs):
if not request.user.is_authenticated and "nocache" not in request.GET:
print("🤙 CACHE HIT")
return cache_page(*cache_args, **cache_kwargs)(func)(
request, *args, **kwargs
)
Expand Down
3 changes: 2 additions & 1 deletion servers.conf.erb
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
proxy_cache_path /tmp/nginx_assistant_cache levels=1:2 keys_zone=assistant:10m max_size=1g inactive=60m use_temp_path=off;

server {
listen <%= ENV["PORT"] %>;
server_name _;

proxy_cache_path /tmp/nginx_assistant_cache levels=1:2 keys_zone=assistant:10m max_size=1g inactive=60m use_temp_path=off;

location /static/ {
expires max;
Expand Down

0 comments on commit 81484f2

Please sign in to comment.