Skip to content

WP-Config.php Enhancement #153

Open
Open

Description

@jasoncomes

Update WP_POST_REVISIONS to 3 instead of 5 and add define('AUTOSAVE_INTERVAL', 300); to the wp_config.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

Activity

  1. EvanK commented on Nov 16, 2016

    @EvanK
    Contributor

    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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions