You've set the wrong extension name. In that snippet of code, you need
to put the name of your extension i.e. wfExampleExtension.
You can find this at the top of extensions/rss.php as the value of
$wgExtensionFunctions[].
-----Original Message-----
From: mediawiki-l-bounces(a)Wikimedia.org [mailto:mediawiki-l-
bounces(a)Wikimedia.org] On Behalf Of Brandon
Sent: Thursday, July 14, 2005 2:36 PM
To: MediaWiki-l(a)Wikimedia.org
Subject: [Mediawiki-l] disabling extension caching
I am using an rss extension with wiki. (magpie rss parser)
So I need the caching disabled for this extension to get current
records
to display in wiki.
I found an example on the mediawiki's help page.
global $wgParser;
global $wgTitle;
$dbw =& wfGetDB( DB_MASTER );
$dbw->update( 'cur', array( 'cur_touched' =>
$dbw->timestamp(
time()
+ 120 ) ),
array('cur_namespace' => $wgTitle->getNamespace(),'cur_title'
=>
$wgTitle->getDBkey()), 'rss.php'
);
I placed this code inside the function that uses setHook
I get no errors.
The problem is that the rss are still displaying the old records.
Any help would be appreciated.
_______________________________________________
MediaWiki-l mailing list
MediaWiki-l(a)Wikimedia.org
http://mail.wikipedia.org/mailman/listinfo/mediawiki-l