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



_______________________________________________
MediaWiki-l mailing list
MediaWiki-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l

Reply via email to