On Sat, Jun 4, 2011 at 11:24 AM, Tisza Gergö <[email protected]> wrote:
> - a lot of editors seem to use it already to find articles which need some 
> care,
> and currently it slows down page loading for them because it breaks caching, 
> so
> they could work quicker.

It would be better if we could fix it so it didn't break caching at
all, of course, such as by adding the coloring during a postprocessing
stage, after the parser cache is invoked rather than before.

> On the other hand, I suppose it would raise database load because the length 
> of
> all linked pages would need to be queried at HTML generation. (Or is that 
> query
> already already necessary to see which links are red?)

Yes, we're already querying for redlinks, so there's no additional
cost to query page_len while we're at it.  In fact, we always query
page_len anyway just in case we need it for stubs -- see doQuery() in
includes/cache/LinkBatch.php.

But as Platonides says, the parser cache is currently not used at all
when stub coloring is enabled -- I didn't realize that.  If you think
about it, if we cached pages with stub coloring, we'd have to purge
the cache of all pages linking to them whenever they changed length,
or at least whenever the length change put them above or below some
threshold.

This would be moot if we added the coloring on postprocessing after
retrieval from cache, instead of during parsing.  But that's a fairly
ambitious project, I guess.  Alternatively, we could cache it and just
not care if the coloring is outdated, but users would doubtless
complain too much for that to be worth it.

On Sat, Jun 4, 2011 at 6:54 PM, Platonides <[email protected]> wrote:
> No.
> Currently it would mean not caching any page view.
> The feature would need to be adapted to allow efficient stub linking
> (I have some ideas about it, and the new linker makes things easier).

What were you thinking of?

On Sun, Jun 5, 2011 at 8:08 AM, Federico Leva (Nemo) <[email protected]> wrote:
> Would it be possible to raise the default threshold for links to a page to be
> red? Currently it's 0, if I understand correctly, but we could decide to make 
> it
> 1024 or whatever for everyone (if some wiki asked it), couldn't we?

I'm not sure what you're asking.  Currently, links to a page are red
if the page does not exist.  It doesn't have to do with the number of
links to the page.

_______________________________________________
Wikitech-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Reply via email to