It seems as though the `addSite` maintenance script does not work well when apc is enabled for MediaWiki (site store caching is enabled) and `apc.enable_cli` is off.
**AC**:
- [ ] Investigate how changing this setting (apc.enable_cli) affects mediawki instances
- [ ] Depending on the result of the investigation, either Implement a warning to notify users of this script regarding this pitfall **OR** change the setting from within the script, if possible.
**Hints**:
@addshore Created an initial Gerrit change documenting this slightly https://gerrit.wikimedia.org/r/c/mediawiki/core/+/603570
But this probably needs a better method of being tackled as it will and has caught many people out.
This could be:
- better docs?
- warnings in the script that this is going to happen?
- enabling this setting for the script?
- something else?
**Reading**:
- https://stackoverflow.com/questions/1245242/php-apc-in-cli-mode