Re: [Mediawiki-l] Hook called on cache miss?

2011-11-10 Thread Stephan Gambke
Hi, On 10 November 2011 00:32, Brion Vibber br...@wikimedia.org wrote: I'm looking for a hook that is called when the text of an article is parsed because of a cache miss. What are you trying to accomplish with a hook that's called during (before? after?) parsing that comes after a parser

Re: [Mediawiki-l] Hook called on cache miss?

2011-11-10 Thread Brion Vibber
On Thu, Nov 10, 2011 at 1:04 AM, Stephan Gambke s7ep...@gmail.com wrote: S*mantic Forms form definition pages work to a degree similar to templates, in that they have some explanatory text in noinclude tags and the actual form definition in includeonly tags. Currently this form definition is

Re: [Mediawiki-l] Hook called on cache miss?

2011-11-10 Thread Brion Vibber
On Thu, Nov 10, 2011 at 9:13 AM, Brion Vibber br...@pobox.com wrote: part in includeonly tags and cache it along with the page. Then, when a form is actually to be displayed I get the form definition text from cache if available. Since the noinclude contents are excluded in an early stage

Re: [Mediawiki-l] Hook called on cache miss?

2011-11-10 Thread Stephan Gambke
That's what you get when you are too fixed on one solution, I never even thought of separating caching the page from caching the definition. Thanks Brion! Am 10.11.2011 18:13, schrieb Brion Vibber: A more typical caching pattern within MediaWiki would look something like this: * devise an

[Mediawiki-l] Hook called on cache miss?

2011-11-09 Thread Stephan Gambke
Hi, I'm looking for a hook that is called when the text of an article is parsed because of a cache miss. On IRC I was told to use one of the hooks called by Parser::parse, but I am not sure that's the solution: * Parse is also called on cached pages, e.g. to render the 'This page has been

Re: [Mediawiki-l] Hook called on cache miss?

2011-11-09 Thread Brion Vibber
On Wed, Nov 9, 2011 at 2:35 PM, Stephan Gambke s7ep...@gmail.com wrote: Hi, I'm looking for a hook that is called when the text of an article is parsed because of a cache miss. What are you trying to accomplish with a hook that's called during (before? after?) parsing that comes after a