Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ApiStashEdit, editing, and parsing #2484

Closed
mwjames opened this issue May 27, 2017 · 0 comments
Closed

ApiStashEdit, editing, and parsing #2484

mwjames opened this issue May 27, 2017 · 0 comments
Labels
enhancement Alters an existing functionality or behaviour
Milestone

Comments

@mwjames
Copy link
Contributor

mwjames commented May 27, 2017

MediaWiki's ApiStashEdit is responsible that for each edit attempt (empty or not) an API call is made and with that request a full parse of the page content is executed resulting in embedded parser functions (e.g. #show/#ask) being executed as well.

For those who enabled #1251, the query cache is used and avoids possible #show/#ask Store connections during those stash edits and will output something like:

Title::getRestrictionTypes: applicable restrictions to [[Lorem ipsum-2baa]] are {edit,move}
User::pingLimiter: adding record for mediawiki:limiter:stashedit:ip:127.0.0.1 (limit 30 in 60s)
Unstubbing $wgParser on call of $wgParser::preSaveTransform from WikiPage->prepareContentForEdit
Parser: using preprocessor: Preprocessor_DOM
[MessageCache] MessageCache::load: Loading en... local cache is empty, got from global cache
[Preprocessor] Cached preprocessor output (key: mw-master:preprocess-xml:8ef108a578f78ed4e79aca817362e6f6:0)
Unstubbing $wgLang on call of $wgLang::_unstub from ParserOptions->__construct
[Preprocessor] Loaded preprocessor output from cache (key: mw-master:preprocess-xml:8ef108a578f78ed4e79aca817362e6f6:0)
[smw] SMW\Query\Result\CachedQueryResultPrefetcher::newQueryResultFromCache (sec): 0.00251 (8a8be490076aa932437d10998b2a6a28)
[smw] SMW\Utils\BufferedStatsdCollector::recordStats (as waitable DeferrableUpdate)
[smw] SMW\Query\Result\CachedQueryResultPrefetcher::newQueryResultFromCache (sec): 0.00053 (05272fde6584275bc50f4d3f54377a75)
[smw] SMW\Utils\BufferedStatsdCollector::recordStats (fingerprint: f2d0b14cf14cc570a0499628bc538581 is already listed therefore skip)
[Preprocessor] Loaded preprocessor output from cache (key: mw-master:preprocess-xml:8ef108a578f78ed4e79aca817362e6f6:0)
Title::getRestrictionTypes: applicable restrictions to [[Lorem ipsum-2baa]] are {edit,move}
Title::getRestrictionTypes: applicable restrictions to [[Lorem ipsum-2baa]] are {edit,move}
[StashEdit] Cached parser output for key 'mw-master:prepared-edit:a7b2350193f5b4ebfd5df9e963b6e18b:18e48319eafc9b4219964fa0f9152a1c6090e84d:90f42dc8c99187877261a42fd0a194b3' ('Lorem ipsum-2baa').
@kghbln kghbln added the enhancement Alters an existing functionality or behaviour label May 27, 2017
@kghbln kghbln added this to the SMW 3.0.0 milestone May 27, 2017
@kghbln kghbln closed this as completed May 27, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Alters an existing functionality or behaviour
Projects
None yet
Development

No branches or pull requests

2 participants