diff --git a/docker/wp-config.php b/docker/wp-config.php
index 0d24d7b2e60209e355ea49b5c72eef07a244a7a4..24f65b5c6472f79ff3d3143faadd63c2f4a002a8 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.
  *