Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add note on re-configuring RealMe module #27

Merged
merged 2 commits into from
Jul 18, 2018
Merged

Conversation

madmatt
Copy link
Member

@madmatt madmatt commented Jul 18, 2018

The module supports re-configuration after initial YML loading for more complex environments - this adds a brief note to the documentation that indicates this and lists what you need to watch out for.

The module supports re-configuration after initial YML loading for more complex environments - this adds a brief note to the documentation that indicates this and lists what you need to watch out for.
@robbieaverill
Copy link
Contributor

Hmmm, unlike SS3, in SS4 modifying config with PHP involves mutating the config manifest and is bad for performance reasons. We shouldn’t really be encouraging it. I see you’ve noted it as a temporary solution until #26 is resolved though so it’s probably OK for now. Also worth noting that _config.php files are run on every request, not just those for RealMe requests

@madmatt
Copy link
Member Author

madmatt commented Jul 18, 2018

Great point, thanks @robbieaverill! I've updated the docs to reflect this a bit better, and changed the code so it only modifies config if necessary.

Copy link
Contributor

@robbieaverill robbieaverill left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@robbieaverill robbieaverill merged commit a207c2f into master Jul 18, 2018
@dhensby dhensby deleted the pulls/reconfig-docs branch July 19, 2018 00:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants