After changing the default skin on our wiki from monobook to vector ($wgDefaultSkin = 'vector'), and deleting all 'skin' preference rows from the user_options table, a few of our wiki users still see the old skin, monobook. Where is this setting cached?
Things that did not help (monobook still shows):
* Logging out and logging back into the wiki * Hard-refreshing the browser (ctrl-F5) * ?action=purge * Using a different browser (e.g., Chrome instead of Firefox)
What worked:
* Visiting Special:Preferences and simply clicking Save.
So this caching, whatever it is, happens at the user account level, not the browser level. Where does it exist and how do you clear it?
Thanks for any info, DanB
On Mon, Sep 19, 2011 at 10:44 AM, Daniel Barrett danb@vistaprint.comwrote:
After changing the default skin on our wiki from monobook to vector ($wgDefaultSkin = 'vector'), and deleting all 'skin' preference rows from the user_options table, a few of our wiki users still see the old skin, monobook. Where is this setting cached?
Things that did not help (monobook still shows):
Logging out and logging back into the wiki
Hard-refreshing the browser (ctrl-F5)
?action=purge
Using a different browser (e.g., Chrome instead of Firefox)
What worked:
Visiting Special:Preferences and simply clicking Save.
So this caching, whatever it is, happens at the user account level, not the browser level. Where does it exist and how do you clear it?
Thanks for any info, DanB
http://www.mediawiki.org/wiki/Manual:Skin_configuration#Set_a_Default_Skin_f... refers to a userOptions.php that might cover this.
--Fred
On Mon, Sep 19, 2011 at 10:44 AM, Daniel Barrett danb@vistaprint.com wrote:
So this caching, whatever it is, happens at the user account level, not the browser level. Where does it exist and how do you clear it?
Depends on your caching setup. If you're using eAccelerator/APC/XCache, you can clear it by restarting Apache. If you're using the `objectcache` db table, you can clear it by removing the entries from that table. If you're using memcache, you can either restart memcache to flush it or use the 'mcc.php' maintenance script to delete individual entries.
-Chad
Chad explains how to purge user preferences from cache:
Depends on your caching setup. If you're using eAccelerator/APC/XCache, you can clear it by restarting Apache. If you're using the `objectcache` db table, you can clear it by removing the entries from that table. If you're using memcache, you can either restart memcache to flush it or use the 'mcc.php' maintenance script to delete individual entries.
So now I am completely stumped. I have tried clearing all users' 'skin' preferences (so they will use $wgDefaultSkin) by doing all of the following:
- Delete all rows from the user_properties table where up_property = 'skin' - truncate table objectcache - restart Apache (for eAccelerator) and use eAccelerator's own cache-purging command - Deleted all cache files in $wgCacheDirectory - User logged out of MediaWiki and logged back in - User deleted all cookies and browser-cached content - User restarted web browser
For some users, their skin *still* is not $wgDefaultSkin. It remains monobook, the previous value of $wgDefaultSkin.
We don't use the other caches you mention.
If they hit Special:Preferences and simply click Save, the problem goes away (for them) and their skin is now $wgDefaultSkin.
Any other ideas where this skin preference is being cached?
Thanks, DanB
On Mon, 2011-09-19 at 14:44 +0000, Daniel Barrett wrote:
After changing the default skin on our wiki from monobook to vector ($wgDefaultSkin = 'vector'), and deleting all 'skin' preference rows from the user_options table, a few of our wiki users still see the old skin, monobook. Where is this setting cached?
Things that did not help (monobook still shows):
Logging out and logging back into the wiki
Hard-refreshing the browser (ctrl-F5)
?action=purge
Using a different browser (e.g., Chrome instead of Firefox)
What worked:
Visiting Special:Preferences and simply clicking Save.
So this caching, whatever it is, happens at the user account level, not the browser level. Where does it exist and how do you clear it?
Thanks for any info, DanB
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
Its been a while but at one time each individual user could set up the type of skin they wanted to view on their system, in their preferences, If (I think) they are logged in to the Mediawiki.
mediawiki-l@lists.wikimedia.org