On 11/25/07, aaron(a)svn.wikimedia.org <aaron(a)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 messages
+ if( !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?