On Thu, Dec 5, 2013 at 2:32 PM, Daniel Barrett <d...@vistaprint.com> wrote:
> I've noticed that parser tag extensions render twice when an article is > saved from the edit page. > All I did was write a parser tag <foo> that runs error_log('foo'). > It prints once when I hit <foo/> on a page, but twice when saving the page > from the wiki editor. > > Is there a way to prevent this double-running on save? > Even way for the extension itself to detect it's on the first (or second) > run and suppress itself? > > I have an extension that is heavyweight, making a SQL query to an external > database, > and I don't want to run twice. > > Thanks for any insights! > DanB Perhaps you can try something analogous to what's suggested here: https://www.mediawiki.org/wiki/Manual_talk:Hooks/ParserBeforeStrip#Sanity_Check _______________________________________________ MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l