}
function replace( $title, $text ) {
- global $wgLocalMessageCache;
+ global $wgLocalMessageCache, $parserMemc, $wgDBname;
$this->lock();
$this->load();
+ $parserMemc->delete("$wgDBname:sidebar");
if ( is_array( $this->mCache ) ) {
$this->mCache[$title] = $text;
$this->mMemc->set( $this->mMemcKey, $this->mCache, $this->mExpiry );