Last modified: 2010-05-15 15:41:14 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T10184, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 8184 - in so many crannies $wgSitename is cached
in so many crannies $wgSitename is cached
Status: RESOLVED WORKSFORME
Product: MediaWiki
Classification: Unclassified
Parser (Other open bugs)
1.7.x
PC Linux
: Low minor (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2006-12-07 17:53 UTC by Dan Jacobson
Modified: 2010-05-15 15:41 UTC (History)
0 users

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Dan Jacobson 2006-12-07 17:53:36 UTC
Just amazed at all the nooks and crannies $wgSitename is cached.
$ echo -n Project_Talk:Community_Portal|php deleteBatch.php
中車討論:Community Portal
What do you mean 中車? Months ago I changed it to 中公!,
as can be seen via Special:Export:
    <title>中公討論:Community Portal</title>
All in all, things still run OK. It's just that there are too many
scattered disturbing old $wgSitename cached places. One could
Rebuild_this and Rebuild_that but ... it's not my fault.
Comment 1 Rob Church 2006-12-09 10:18:21 UTC
Unable to reproduce the reported case. Steps taken:

1. Install a fresh checkout of MediaWiki 1.7.1
2. Verify the resolved location of Project:Community_portal
3. Change $wgSitename in LocalSettings.php
4. Verify the resolved location of Project:Community_portal

Works for me. Links in sidebar are updated, usual caches are cleared and the
page goes where I expect it to.
Comment 2 Rob Church 2006-12-09 10:21:18 UTC
Was this 1.7.1 wiki upgraded from earlier branches at any point? I recall that
some language files used to directly concatenate $wgSitename, which has the
effect that, when the MediaWiki namespace is initialised, the site name is
hardcoded into the page. This was corrected, for the most part, by replacing
this with {{SITENAME}} wherever it occurred, which causes the variable to be
saved, and corrects the behaviour.

If this *is* the case, then rebuildMessages.php would help the situation, but
you seem to be adverse to running maintenance scripts.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links