-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I believe Magpie also has RSS caching enabled by default. If it is on
and working, you will probably find a ./cache directory under the
directory containing rss.php. You can clear the cache by deleting the
contents of the directory. The Magpie documentation
(
) has info on how to disable it. I
believe the default setting is to use the cached file if the age is less
than one hour.
Gregory Szorc
gregory.szorc(a)case.edu
Zain Memon wrote:
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
_______________________________________________
MediaWiki-l mailing list
MediaWiki-l(a)Wikimedia.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird -
http://enigmail.mozdev.org
iD8DBQFC1uf2JC5An4L5SzkRAkNxAJwJGWSUADCJB/esxCm8niUMpSHnDwCeP2kh
fxT0sb99cTzkqBNkAYCrMIg=
=kQ5L
-----END PGP SIGNATURE-----