Page MenuHomePhabricator

Extension:Gadgets with strange page caching (?) bug on special:preferences
Closed, InvalidPublic

Description

Author: arnomane

Description:
In de.wikipedia you need to edit MediaWiki:Gadgets-definition twice in order to add a new entry/remove an entry from the resulting "Gadgets" tab in Special:Preferences (Spezial:Einstellungen there). So only every second edit to MediaWiki:Gadgets-definition seems to get recognized by the extension (a null edit as second edit works).


Version: unspecified
Severity: normal
URL: http://www.mediawiki.org/wiki/Extension:Gadgets

Details

Reference
bz12128

Event Timeline

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

This is somehow related to how the Gadgets extension caches the list of gadgets maintained on MediaWiki:Gadgets-definition: after parsing, it stuffs them into memcached. If the page is edited, the cache entry is invalidated.

I don't know why this doesn't work on the live site, it works for me locally, even with memcached enabled (if i in fact managed to correctly enable it). So, it would be great if someone with better knowledge of the caching system could look into this - maybe it's related to the local message cache thingy?

Fixed in revision 27891 with some help from Brion. Should go live soon.

I still experience this problem on it.wikipedia. Today I added a gadget in Gadgets-definition. I waited several hours but the gadget didn't show up in the Prefs. Then I made a null edit and it immediately began working.

Is this bug still reproduceable?

(In reply to comment #3)

I still experience this problem on it.wikipedia. Today I added a gadget in
Gadgets-definition. I waited several hours but the gadget didn't show up in the
Prefs. Then I made a null edit and it immediately began working.

https://www.mediawiki.org/wiki/Special:Code/MediaWiki/27891

Seemingly might be from bug 33829

Null edit fixed it in this case also

I believe the English Wikipedia just hit this issue. There was a corrupt memcached entry with a value of "enwiki:gadgets-definition:6" that Tim had to delete manually in order to get the Gadgets extension working again.

Hi is this still a problem or has it been fixed.