Tom,
It sounds very interesting. However, you are talking to a php/MW
apprentice here. Could you elaborate the following points?
1. to make an empty template and transclude it to all pages that use the
<status> tag (which can
probably be done automatically by the extension)
Do I create a template contains <Status /> and link to this template (eg.
{{Template:status}} in XYZ page?
2. to make an empty template ... use the <status> tag (which can probably
be done automatically by the extension)
Do you mean calling something inside the extension code?
3. then you just have to make a null edit to the template -- How to do
null edit a template?
Nelson
Computer Sciences Corporation
Registered Office: 2100 East Grand Avenue, El Segundo California 90245, USA
Registered in USA No: C-489-59
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
This is a PRIVATE message. If you are not the intended recipient, please
delete without copying and kindly advise us by e-mail of the mistake in
delivery.
NOTE: Regardless of content, this e-mail shall not operate to bind CSC to
any order or other contract unless pursuant to explicit written agreement
or government initiative expressly permitting the use of e-mail for such
purpose.
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
"Thomas Dalton"
<thomas.dalton@gm
ail.com> To
Sent by: "MediaWiki announcements and site
mediawiki-l-bounc admin list"
es(a)lists.wikimedi <mediawiki-l(a)lists.wikimedia.org>
a.org cc
Subject
12/19/2007 01:42 Re: [Mediawiki-l] Update page
PM contents
Please respond to
MediaWiki
announcements and
site admin list
<mediawiki-l@list
s.wikimedia.org>
On 19/12/2007, Nelson A Li <nli(a)csc.com> wrote:
Hello,
My problem:
1. I created a table in my wikidb and pre-populated it with some data.
This is done outside MW.
2. I then created a local extension (which implements a tag <Status>)
to
retrieve the data and displayed them as a html table.
3. I crated a page (XYZ) contains one statement -- <Status />. When I
save the page, the table is displayed correctly.
4. There were some changes made to the table inside MySQL. When I
follow
a link to the XYZ page, I see the old contents of the
page.
5. When I "edit" and "save" the XYZ page, then I see the updated
data
in
the table.
My question:
1. Is there a way to skip the "edit" & "save" steps and see the
updated
data when I visit the XYZ page?
2. If I have no way to stop the "changing data value inside MySQL
directly" behavior, how do I adapt MW to live with this condition?
Thanks to anybody for help in advance.
You would have to do something when updating the database to tell MW
that the cache is no longer valid. I'm sure it's doable, but I don't
know how. A quick workaround would be to make an empty template and
transclude it to all pages that use the <status> tag (which can
probably be done automatically by the extension), and then you just
have to make a null edit to the template, rather than every page, and
it should automatically update all the other pages using the job
queue. (I think that's how the cache works with templates, anyway...
The MW cache has always confused me.)
_______________________________________________
MediaWiki-l mailing list
MediaWiki-l(a)lists.wikimedia.org
http://lists.wikimedia.org/mailman/listinfo/mediawiki-l