On 12/03/07, Fernando Correia <fernandoacorreia(a)gmail.com> wrote:
I really can't tell how you could do it when cache
is active.
What we need (god, I hate that phrase) is:
1. An extension to the ParserOutput class which allows extensions to
add arbitrary items to the cache in a standard way, e.g.
$parser->getOutput()->addExtensionOutput( 'fooextension', new
MyCustomOutputThingy( blah blah ) );
2. Consistent hook calling on operations which "add" a ParserOutput
(which can be newly-generated or unserialised from the cache) to allow
the extension to access these "output extras" and utilise them.
We have an appropriate hook or two to allow extensions to alter cache
item tokens/hashes, to ensure caching is consistent, so that should be
usable. I *almost* added #1 a while ago (back when I added
__NEWSECTIONLINK__), but for some stupid reason, I decided not to;
more fool I.
Rob Church