"WHERE rc_cur_id=" . $this->getID();
wfQuery( $sql, DB_WRITE, $fname );
+ global $wgEnablePersistentLC;
if ( $wgEnablePersistentLC ) {
// Purge link cache for this page
if( $row != FALSE){
$cacheobj = gzuncompress( $row->lcc_cacheobj );
$cc = unserialize( $cacheobj );
- $this->mGoodLinks = $cc->mGoodLinks;
- $this->mBadLinks = $cc->mBadLinks;
+ $this->mOldGoodLinks = $this->mGoodLinks = $cc->mGoodLinks;
+ $this->mOldBadLinks = $this->mBadLinks = $cc->mBadLinks;
$this->mPreFilled = true;
wfProfileOut( $fname );
+ wfDebug( "LinkCache::preFill - got from linkscc\n" );
return;
}
}
$serCachegz = wfStrencode( gzcompress( serialize( $this ), 3) );
wfQuery("REPLACE INTO linkscc VALUES({$id}, '{$dbkeyfrom}', '{$serCachegz}')",
DB_WRITE);
+ wfDebug( "LinkCache::preFill - saved to linkscc\n" );
}
wfProfileOut( $fname );
function getBadAdditions()
{
+ #wfDebug( "mOldBadLinks: " . implode( ', ', array_keys( $this->mOldBadLinks ) ) . "\n" );
+ #wfDebug( "mBadLinks: " . implode( ', ', array_keys( $this->mBadLinks ) ) . "\n" );
return array_values( array_diff( array_keys( $this->mBadLinks ), array_keys( $this->mOldBadLinks ) ) );
}