Page MenuHomePhabricator

Purge objectcache table during upgrade and installation scripts
Closed, ResolvedPublic

Description

Changes made to the MediaWiki namespace weren't available after updating MediaWiki to version 1.8.2 after runnung
maintenance/update.php.

The pages in MediaWiki namespace where still available with all their content, but neither Special:Allmessages nor
the GUI showed the changes anymore.

After investigating with several updated and a freshly installed wiki with Brion he found out, that the reason was
in the objectcache table.

We therefore agreed to include a purge cache function into maintenance/update.php to avoid this problem in future.


Version: 1.8.x
Severity: enhancement

Details

Reference
bz8016

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 9:29 PM
bzimport set Reference to bz8016.
bzimport added a subscriber: Unknown Object (MLST).

Created attachment 2764
introduce the new function purge_objectcache() and run it by default after updates.

attachment updaters.inc.patch ignored as obsolete

Created attachment 2765
clean patch from an unmodified source file (function call was already included in old version)

Attached:

right now I found out (on two different wikis on two different servers): If you don't clear the object cache after upgrading from 1.8.2 to 1.9alpha apache will start using
up all CPU time.

After clearing the cache it worked smoothly.