Today, I discovered CommunityConfiguration does not invalidate cache when the underlying wikipage is edited manually:
I have no name!@b3b007ed45ec:/var/www/html/w$ php maintenance/shell.php
*******************************************************************************
NOTE: Do not run maintenance scripts directly, use maintenance/run.php instead!
Running scripts directly has been deprecated in MediaWiki 1.40.
It may not work for some (or any) scripts in the future.
*******************************************************************************
PHP Notice: Writing to directory /.config/psysh is not allowed. in /var/www/html/w/vendor/psy/psysh/src/ConfigPaths.php on line 331
Psy Shell v0.12.7 (PHP 8.3.14 — cli) by Justin Hileman
> \MediaWiki\MediaWikiServices::getInstance()->get('CommunityConfiguration.ProviderFactory')->newProvider('GrowthMentorList')->loadValidConfiguration()->getValue()
= {#6085
+"Mentors": {#6098
+"1": {#6099
+"message": null,
+"weight": 2,
+"username": "Admin",
},
+"29": {#6089
+"message": null,
+"weight": 2,
+"username": "Mentor",
},
+"3": {#6088
+"message": "This experienced user knows you're new and can help you with editing.",
+"weight": 2,
+"username": "Test user 1",
},
+"107": {#6087
+"message": null,
+"weight": 2,
+"username": "Test 202404091411",
},
+"134": {#6086
+"message": null,
+"weight": 2,
+"username": "Alice-p8rvl7TzIq",
},
},
}
> ^D
INFO Ctrl+D.
I have no name!@b3b007ed45ec:/var/www/html/w$ echo '{"Mentors": []}' | php maintenance/edit.php -u Admin 'MediaWiki:GrowthMentors.json'
*******************************************************************************
NOTE: Do not run maintenance scripts directly, use maintenance/run.php instead!
Running scripts directly has been deprecated in MediaWiki 1.40.
It may not work for some (or any) scripts in the future.
*******************************************************************************
Saving...
I have no name!@b3b007ed45ec:/var/www/html/w$ php maintenance/shell.php
*******************************************************************************
NOTE: Do not run maintenance scripts directly, use maintenance/run.php instead!
Running scripts directly has been deprecated in MediaWiki 1.40.
It may not work for some (or any) scripts in the future.
*******************************************************************************
PHP Notice: Writing to directory /.config/psysh is not allowed. in /var/www/html/w/vendor/psy/psysh/src/ConfigPaths.php on line 331
Psy Shell v0.12.7 (PHP 8.3.14 — cli) by Justin Hileman
> \MediaWiki\MediaWikiServices::getInstance()->get('CommunityConfiguration.ProviderFactory')->newProvider('GrowthMentorList')->loadValidConfiguration()->getValue()
= {#6085
+"Mentors": {#6098
+"1": {#6099
+"message": null,
+"weight": 2,
+"username": "Admin",
},
+"29": {#6089
+"message": null,
+"weight": 2,
+"username": "Mentor",
},
+"3": {#6088
+"message": "This experienced user knows you're new and can help you with editing.",
+"weight": 2,
+"username": "Test user 1",
},
+"107": {#6087
+"message": null,
+"weight": 2,
+"username": "Test 202404091411",
},
+"134": {#6086
+"message": null,
+"weight": 2,
+"username": "Alice-p8rvl7TzIq",
},
},
}
> ^D
INFO Ctrl+D.
I have no name!@b3b007ed45ec:/var/www/html/w$This is not desirable. While manual edits are generally undesired, they are still a workflow we need to support (at least unless we move all CC pages to a super locked-down namespace). For certain workflows (like reverts), a manual edit is even the most likely action to be taken by an admin.