maintenance: Remove cross-wiki purging from rebuildmessages.php
authorTimo Tijhof <krinklemail@gmail.com>
Sat, 31 Aug 2019 13:38:31 +0000 (14:38 +0100)
committerTimo Tijhof <krinklemail@gmail.com>
Sat, 31 Aug 2019 13:53:19 +0000 (14:53 +0100)
commit8754e0775491e8513c47b86023cc5e40eb713ba7
treeadd3c9bf7a6b60ce75769b4f5eb26cec0c3474b9
parentb0c56c7050227d5422d3b539b9ddcc44b7bf9e5a
maintenance: Remove cross-wiki purging from rebuildmessages.php

This script relied on numerous outdated or unofficial methods that
are no longer supported.

* Global variable $messageMemc holding a BagOStuff based on
  MessageCacheType. This logic is now in ServiceWiring
  for the MessageCache service.

* String "{$db}:messages", should have been using BagOStuff::makeKey()
  and may've fallen out of sync.

* Deleting keys outright instead of touching check keys as
  MessageCache does, since it's been using WANObjectCache for
  several years.

All of this should be done via MessageCache::clear(), but that
can't be easily constructed across wikis on a wiki farm. That
requires instantiating the script for other wikis separately.

Remove support for that, recommending instead that site admins
run it in a loop for each wiki as needed.

Realistically though, that should never be needed. The script has
virtually no known use case, except (as documented in maintenance/README)
"after changing a wiki's content language" - which applies to one
wiki, not all a once.

Change-Id: I9f45d65f5cef93d6e332baf26d955d3f7a7c19d2
maintenance/rebuildmessages.php