From 4e0f3e8111db024097b09af07a868ba04684a2e2 Mon Sep 17 00:00:00 2001
From: ale <ale@incal.net>
Date: Wed, 15 Feb 2023 10:24:10 +0000
Subject: [PATCH] Set COOKIEHASH to a fixed value

Avoids an extra SQL lookup on every request (a drop in the
ocean, but still).
---
 docker/wp-config.php | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/docker/wp-config.php b/docker/wp-config.php
index 0d24d7b2..24f65b5c 100644
--- a/docker/wp-config.php
+++ b/docker/wp-config.php
@@ -109,6 +109,12 @@ define('SMTP_FROM', 'noreply@autistici.org');
 define('SMTP_NAME', 'NoBlogs');
 define('SMTP_DEBUG', 0);
 
+/* Set the cookie hash once and for all. Avoids one SQL
+ * lookup on every request. This is just md5(https://noblogs.org/)
+ * to match the value that Wordpress would compute itself.
+ */
+define('COOKIEHASH', '7d12c307721c1cbe9412c639209d72aa');
+
 /**#@+
  * Authentication Unique Keys and Salts.
  *
-- 
GitLab