I ran across this code after looking for a way to force certain pages to
not cache:
global $wgTitle;
if ($wgTitle)
{
$ts = mktime();
$now = gmdate("YmdHis", $ts + 60);
$ns = $wgTitle->getNamespace();
$ti = wfStrencode($wgTitle->getDBkey());
$sql = "UPDATE cur SET cur_touched='$now' WHERE cur_namespace=$ns
AND
cur_title='$ti'";
wfQuery($sql, DB_WRITE);
}
Where do I put this code? In the extension I am needing it for?
(dynamicpages2)
Show replies by date