public static function isPosted($talk, $user) { global $wgMemc, $wgEnableWallExt; $key = wfMemcKey("HAWelcome-isPosted", $user->getName()); $isPosted = $wgMemc->get($key, false); if ($isPosted) { return true; } if (!empty($wgEnableWallExt)) { if (WallHelper::haveMsg($user)) { $wgMemc->set($key, true); return true; } } $talkExists = $talk->exists(); $wgMemc->set($key, $talkExists); return $talkExists; }
protected function recipientWallIsEmpty() { return !WallHelper::haveMsg($this->recipientObject); }