Extension talk:GetUserName

From MediaWiki.org
Jump to navigation Jump to search

The problem with this and similar extensions is that they break the parser cache. This extension doesn't disable the parser cache, so when a page is viewed, you will get the user name of the user who caused it to be entered into the cache (e.g. by viewing it when it was not in the cache, or by editing it). You should disable the cache (see Manual:Parser functions#Caching), and on a small wiki or a short page it won't be much of a problem, but for the purpose you created this extension for, it is better to use Special:Mypage, e.g. Special:Mypage/Draft-20190523104547 (note that because of caching, currenttimestamp is the time the page was entered into the parser cache, so it may be off by several hours compared to real time.) -- Nx / talk 09:46, 22 July 2010 (UTC)