On Sat, 20 Oct 2012 09:15:15 -0700, Markus Krötzsch <mar...@semantic-mediawiki.org> wrote:

Hi Daniel, hi Jeroen, hi all,

On 20/10/12 16:47, Daniel Friesen wrote:
On Sat, 20 Oct 2012 06:14:36 -0700, Jeroen De Dauw
<jeroended...@gmail.com> wrote:

Hey,

Daniel, thanks for your suggestion.

Going on the little documentation, "Name/value pairs to be cached in the DB", it seems that everything added via setProperty goes into the parser
cache. There is no point in this data going in there, so using
setProperty
does not seem ideal. Anything more suited already there?

Cheers

...
Wait, I can understand wanting data that goes into the cached parser
output but is not saved into page_props.

But are you saying that this SMW isn't actually used at all after
parsing is finished, only during?

The data is used during and right after parsing, when the article is saved. The task here is to allow hooks to collect information during parsing and to process this information afterwards. The purpose of the change is to pass information sideways from one hook to the next. It would not be useful to store any of this information in the MW DB or in any cache.

Markus

Mind mentioning which hooks these are? Do they get a parser output explicitly or are they getting it from the parser?

--
~Daniel Friesen (Dantman, Nadir-Seen-Fire) [http://daniel.friesen.name]

_______________________________________________
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Reply via email to