On 11/25/07, aaron@svn.wikimedia.org aaron@svn.wikimedia.org wrote:
/*** As we use the same small set of messages in various methods and that* they are called often, we call them once and save them in $this->message*/function preCacheMessages() {// Precache various messagesif( !isset( $this->message ) ) {$this->message['last'] = wfMsgExt( 'last', array( 'escape') );}}
As a general remark (I've seen this technique in more than one special page's code), do we really need this? Doesn't MessageCache handle local message caching anyway?
wikitech-l@lists.wikimedia.org