From 9a9113d1b113cb37089bdeb1705098acce02b4ee Mon Sep 17 00:00:00 2001
From: Jelle van der Waa <jelle@archlinux.org>
Date: Sat, 2 Oct 2021 14:07:25 +0200
Subject: [PATCH] Fix pymemcache client errors with django

---
 roles/archweb/templates/local_settings.py.j2 | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/roles/archweb/templates/local_settings.py.j2 b/roles/archweb/templates/local_settings.py.j2
index 75036a035..6d9dcd670 100644
--- a/roles/archweb/templates/local_settings.py.j2
+++ b/roles/archweb/templates/local_settings.py.j2
@@ -40,6 +40,13 @@ CACHES = {
     'default': {
         'BACKEND' : 'django.core.cache.backends.memcached.PyMemcacheCache',
         'LOCATION': 'unix:/run/memcached/archweb.sock',
+        'OPTIONS': {
+            'no_delay': True,
+            'max_pool_size': 4,
+            'use_pooling': True,
+            'ignore_exc': True,
+        }
+
     }
 }
 
-- 
GitLab