After intermittently thinking about this for a few days, let me see if I understand what's going on.
1) When I import any new page via importDump, it gets parsed and saved in the parser cache. 2) During this parsing, the magic word {{SERVER}} looks for $_SERVER and finds 'localhost' instead of my base url. 3) When I click on the page without editing, it calls that cached version, which includes localhost instead of mywiki.org or whatever. All the other new content is already there because it was generated at the same time as the incorrect value of {{SERVER}}. I had foolishly thought that there was some kind of separate caching of templates magic words (doh). 4) When I do any kind of edit from the web interface, it reparses the page and saves the new version in the cache, but now it correctly interprets {{SERVER}}.
Is that right? If so, am I correct that: - Temporarily disabling caching during import won't help - setting $wgServer will work, but only if I set it somewhere where it won't be reset to localhost by importDump. i.e. I should set it in AdminSettings.php? - {{SERVER}} will get confused either way if I have different URLs pointing to the same wiki? In my case, I have ecoliwiki.org, ecoliwiki.net, and ecoliwiki.com. To fix this, I should do some rewrite rules.
Jim
On Jul 12, 2007, at 12:04 PM, Jim Hu wrote:
On Jul 12, 2007, at 11:40 AM, Brion Vibber wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Jim Hu wrote:
I guess I wasn't clear. After running importDump.php (but not rebuildAll.php), I view the imported page via the web server by opening or reloading it in a browser. I know that it's not a browser cache problem because other content on the page changes (or it's the first time that page has ever been viewed).
It'd be in the parser cache.
Ah! I'll try to learn more about how the parser cache works. Is there an obvious way to clear it just for the imported pages? I can log which ones need it during generation of the imported pages. Or will one of the rebuild scripts take care of it.
Thanks!
<snip>
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
===================================== Jim Hu Associate Professor Dept. of Biochemistry and Biophysics 2128 TAMU Texas A&M Univ. College Station, TX 77843-2128 979-862-4054