From 1c60ba34755b13a4f22039d45f4b30280eba6c71 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Otto=20Kek=C3=A4l=C3=A4inen?= Date: Wed, 27 Jan 2021 15:55:12 +0200 Subject: [PATCH] Misc wp-config.php documentation enhancements --- htdocs/wp-config.php | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/htdocs/wp-config.php b/htdocs/wp-config.php index d1dfe17..255b656 100644 --- a/htdocs/wp-config.php +++ b/htdocs/wp-config.php @@ -68,17 +68,27 @@ define('FORCE_SSL_ADMIN', true); /** - * Custom Settings + * Disable automatic updates and use Seravo updates instead */ +define('AUTOMATIC_UPDATER_DISABLED', true); + +/* + * Disable the theme/plugin file editor for security reasons + */ +define('DISALLOW_FILE_EDIT', true); + +/* + * Prevent Polylang from setting extra language cookies, so that the HTTP cache + * is not busted in vain. The language is anyway in the request URL (e.g. /en/) + * so extra language cookies are not needed. + */ +define('PLL_COOKIE', false); /** * Standardize cache location to have as much as possible in wp-content/cache * so that it is easier to develop tools to accelerate or purge caches. */ define('WPML_CACHE_PATH_ROOT', dirname(__DIR__) . '/htdocs/wp-content/cache/wpml/'); -define('AUTOMATIC_UPDATER_DISABLED', true); /* automatic updates are handled by wordpress-palvelu */ -define('DISALLOW_FILE_EDIT', true); /* disable the theme/plugin file editor */ -define('PLL_COOKIE', false); /* allow caching sites with polylang, disable if weird issues occur */ /** * Only keep the last 30 revisions of a post. Having hundreds of revisions of