evolution / wordpress

Rapidly create, develop, & deploy WordPress across multiple environments.
MIT License
200 stars 18 forks source link

WP-Config.php Enhancement #153

Open jasoncomes opened 7 years ago

jasoncomes commented 7 years ago

Update WP_POST_REVISIONS to 3 instead of 5 and add define('AUTOSAVE_INTERVAL', 300); to the _wpconfig.php

define('AUTOSAVE_INTERVAL', 300);
define('WP_POST_REVISIONS', 3);

Could we also include this in the Genesis build -> https://github.com/evolution/genesis-wordpress

EvanK commented 7 years ago

If the only customizations needed are for constants, it'd be better to define them as a dict in the group_vars file, like:

wordpress__config_consts:
  AUTOSAVE_INTERVAL: 300
  WP_POST_REVISIONS: 3

And then we can just render them into the wp-config upon (re)generation