Quantcast
Viewing all articles
Browse latest Browse all 38

Prevent removal of line breaks from wp-config.php upon save settings

Replies: 1

First, thanks for this great plugin.

When Powered Cache settings are saved (specifically page cache enabled or disabled), the wp-config.php file is updated where you add

define( 'WP_CACHE', true ); // Powered Cache

to the top of the file. But all line breaks are removed from the file as well.

For instance, this:

define('DB_CHARSET', 'utf8');

define('DB_COLLATE', '');

Becomes this:

define('DB_CHARSET', 'utf8');
define('DB_COLLATE', '');

It doesn’t break anything, but the file is now harder to read.

I’m using nginx, WordPress 6.4.1, Powered Cache 3.3.1, PHP 8.1, on an a localhost test environment.

Thanks.

  • This topic was modified 6 months, 2 weeks ago by jumbo.

Viewing all articles
Browse latest Browse all 38

Trending Articles