Skip to content

Commit 15b9b52

Browse files
committed
Add memcached server config to wp-config.php
1 parent dc9eebe commit 15b9b52

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

dev/flake.nix

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,14 @@
235235
}
236236
'';
237237
STATIC_DEPLOY_PAGE_CACHE_DEFAULT_CACHE_CONTROL = "max-age=6";
238+
239+
# WordPress defines this differently than everything else
240+
memcached_servers = WPConfigFormat.lib.mkInline ''
241+
global $memcached_servers;
242+
$memcached_servers = [
243+
'default' => [ '127.0.0.1', '${toString memcachedConfig.port}' ],
244+
];
245+
'';
238246
};
239247
};
240248
wpPluginCheck = fetchurl {

0 commit comments

Comments
 (0)