Skip to content

Commit

Permalink
Misc wp-config.php documentation enhancements
Browse files Browse the repository at this point in the history
  • Loading branch information
ottok committed Jan 27, 2021
1 parent 1fd4e96 commit 1c60ba3
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions htdocs/wp-config.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1c60ba3

Please sign in to comment.