Hi, I am requesting a number of pages to be parsed on Wikipedia. Generally I am being returned the text, as expected. For some higher traffic pages, I am instead receiving a notice about it being cached. Could someone give me some pointers as to how I am meant to handle this? I’m guessing I need to make a new request to the parser, cache, using the provided key (see below). Does anyone have a link to a page, that explains this behaviour? Notice text is below…
Cheers
Chris Thomas
"<ol>
<li>REDIRECT <a href="/wiki/Stonehenge" title="Stonehenge">Stonehenge</a></li>
</ol>
<!--
NewPP limit report
Preprocessor visited node count: 1/1000000
Preprocessor generated node count: 4/1500000
Post‐expand include size: 0/2048000 bytes
Template argument size: 0/2048000 bytes
Highest expansion depth: 1/40
Expensive parser function count: 0/500
-->
<!-- Saved in parser cache with key enwiki:pcache:idhash:518934-0!*!0!*!*!*! * and timestamp 20130427125848 -->
"
On Sat, 27 Apr 2013 15:12:26 +0200, Chris Thomas chris@mapedia-uk.net wrote:
No, this just means that the page you're trying to parse is a redirect (https://en.wikipedia.org/wiki/Wikipedia:Redirect). You can use the &redirects=1 parameter to automatically bypass redirects (https://www.mediawiki.org/wiki/API:Query#Resolving_redirects).
Thanks, that did the trick ;)
CT
-----Original Message----- From: Bartosz Dziewoński [mailto:matma.rex@gmail.com] Sent: 27 April 2013 15:38 To: chris@mapedia-uk.net; MediaWiki API announcements & discussion Subject: Re: [Mediawiki-api] Parser Cache
On Sat, 27 Apr 2013 15:12:26 +0200, Chris Thomas chris@mapedia-uk.net wrote:
No, this just means that the page you're trying to parse is a redirect (https://en.wikipedia.org/wiki/Wikipedia:Redirect). You can use the &redirects=1 parameter to automatically bypass redirects (https://www.mediawiki.org/wiki/API:Query#Resolving_redirects).
mediawiki-api@lists.wikimedia.org