Commit e44332bc authored by Dom Sekotill's avatar Dom Sekotill
Browse files

Disable script concatenation in the admin interface

This puts extra load on the PHP server that Nginx should be taking.
The benefits of concatenation should be negated when using HTTP/2.
parent 7154aa68
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -95,6 +95,14 @@ server {
	location /wp-admin/ {
		try_files $uri $uri/index.php;

		location = /wp-admin/load-styles.php {
			return 404;
		}

		location = /wp-admin/load-scripts.php {
			return 404;
		}

		location ~ \.php$ {
			include fastcgi-script.conf;
			include cache-bust.conf;
+7 −0
Original line number Diff line number Diff line
@@ -16,6 +16,13 @@ define('DISABLE_WP_CRON', true);
 **/
define('UPLOADS', 'media');

/**
 * Disable script concatenation in the admin interface.
 * This puts extra load on the PHP server that Nginx should be taking.
 * The benefits of concatenation should be negated when using HTTP/2.
 **/
define('CONCATENATE_SCRIPTS', false);

/**
 * Stop the site-health tool from complaining about unwritable filesystems.
 * Background upgrades are performed by a user with write privileges via the