Re: [Wikitech-l] How to clear backlinks cache?

2017-01-24 Thread Legoktm
Hi,

On 01/24/2017 02:34 PM, Victor Porton wrote:
> It seems that the problem is that ParserAfterTidy is not called for old
> pages (pages existed before I installed my extension which adds
> additional links in HtmlPageLinkRendererEnd hook).

You can run the refreshLinks.php maintenance script to force the pages
to be re-parsed.

-- Legoktm

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

Re: [Wikitech-l] How to clear backlinks cache?

2017-01-24 Thread Victor Porton
On Wed, 2017-01-25 at 00:31 +0200, Victor Porton wrote:
> On Tue, 2017-01-24 at 22:21 +, bawolff wrote:
> > This probably indicates that the links aren't being appropriately
> > added via $parserOutput->addLink().
> 
> There is proper $parserOutput->addLink() in my extension
> ParserAfterTidy hook.

It seems that the problem is that ParserAfterTidy is not called for old
pages (pages existed before I installed my extension which adds
additional links in HtmlPageLinkRendererEnd hook).

> > Check that Special:Whatlinkshere for the red links is correct.
> 
> My "arrow" links do not show in Special:Whatlinkshere.
> 
> What should I do for them to appear in Special:Whatlinkshere?
> 
> > --
> > Brian
> > 
> > On Tue, Jan 24, 2017 at 7:40 PM, Victor Porton 
> > wrote:
> > > The red/blue status of links with "arrows" produced by my
> > > NamespacePopups extension is not updated on my site after I
> > > create
> > > a
> > > new page to which the arrow link points (and so it should change
> > > from
> > > red to blue).
> > > 
> > > Example of my page with arrows:
> > > https://withoutvowels.org/wiki/Tanakh:Genesis_1:7
> > > 
> > > I think this is because of the backlinks cache.
> > > 
> > > I have 23253 pages in the namespace Tanakh:. Cache of links from
> > > every
> > > of them should be updated. (It seems that currently the cache
> > > contains
> > > only old regular links not my new "arrow" links.)
> > > 
> > > Please help me to update all these pages. The thing I really need
> > > is to
> > > re-process every of these pages with ParserAfterTidy hook. (My
> > > hook
> > > adds the arrow keys to backlinks cache.)
> > > 
> > > My current workaround is to run maintenance/update.php
> > > periodically.
> > > This updates the red links to blue as appropriate, but this does
> > > not
> > > help to make blue links after future edits.
> > > 
> > > Note that I run maintenance/runJobs.php every minute. The
> > > software
> > > works correctly with these pages which I recently edited, but not
> > > with
> > > constant non-editable pages in Tanakh: namespace.
> > > 
> > > Note that it all works well if I edit the page with my links. But
> > > I
> > > cannot edit all pages in Tanakh: namespace both because they are
> > > a
> > > multitude and because they are non-editable.
> > > 
> > > ___
> > > Wikitech-l mailing list
> > > Wikitech-l@lists.wikimedia.org
> > > https://lists.wikimedia.org/mailman/listinfo/wikitech-l
> > 
> > ___
> > Wikitech-l mailing list
> > Wikitech-l@lists.wikimedia.org
> > https://lists.wikimedia.org/mailman/listinfo/wikitech-l
> 
> 
> ___
> Wikitech-l mailing list
> Wikitech-l@lists.wikimedia.org
> https://lists.wikimedia.org/mailman/listinfo/wikitech-l


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

Re: [Wikitech-l] How to clear backlinks cache?

2017-01-24 Thread Victor Porton
On Tue, 2017-01-24 at 22:21 +, bawolff wrote:
> This probably indicates that the links aren't being appropriately
> added via $parserOutput->addLink().

There is proper $parserOutput->addLink() in my extension
ParserAfterTidy hook.

> Check that Special:Whatlinkshere for the red links is correct.

My "arrow" links do not show in Special:Whatlinkshere.

What should I do for them to appear in Special:Whatlinkshere?

> --
> Brian
> 
> On Tue, Jan 24, 2017 at 7:40 PM, Victor Porton 
> wrote:
> > The red/blue status of links with "arrows" produced by my
> > NamespacePopups extension is not updated on my site after I create
> > a
> > new page to which the arrow link points (and so it should change
> > from
> > red to blue).
> > 
> > Example of my page with arrows:
> > https://withoutvowels.org/wiki/Tanakh:Genesis_1:7
> > 
> > I think this is because of the backlinks cache.
> > 
> > I have 23253 pages in the namespace Tanakh:. Cache of links from
> > every
> > of them should be updated. (It seems that currently the cache
> > contains
> > only old regular links not my new "arrow" links.)
> > 
> > Please help me to update all these pages. The thing I really need
> > is to
> > re-process every of these pages with ParserAfterTidy hook. (My hook
> > adds the arrow keys to backlinks cache.)
> > 
> > My current workaround is to run maintenance/update.php
> > periodically.
> > This updates the red links to blue as appropriate, but this does
> > not
> > help to make blue links after future edits.
> > 
> > Note that I run maintenance/runJobs.php every minute. The software
> > works correctly with these pages which I recently edited, but not
> > with
> > constant non-editable pages in Tanakh: namespace.
> > 
> > Note that it all works well if I edit the page with my links. But I
> > cannot edit all pages in Tanakh: namespace both because they are a
> > multitude and because they are non-editable.
> > 
> > ___
> > Wikitech-l mailing list
> > Wikitech-l@lists.wikimedia.org
> > https://lists.wikimedia.org/mailman/listinfo/wikitech-l
> 
> ___
> Wikitech-l mailing list
> Wikitech-l@lists.wikimedia.org
> https://lists.wikimedia.org/mailman/listinfo/wikitech-l


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

Re: [Wikitech-l] How to clear backlinks cache?

2017-01-24 Thread bawolff
This probably indicates that the links aren't being appropriately
added via $parserOutput->addLink().

Check that Special:Whatlinkshere for the red links is correct.

--
Brian

On Tue, Jan 24, 2017 at 7:40 PM, Victor Porton  wrote:
> The red/blue status of links with "arrows" produced by my
> NamespacePopups extension is not updated on my site after I create a
> new page to which the arrow link points (and so it should change from
> red to blue).
>
> Example of my page with arrows:
> https://withoutvowels.org/wiki/Tanakh:Genesis_1:7
>
> I think this is because of the backlinks cache.
>
> I have 23253 pages in the namespace Tanakh:. Cache of links from every
> of them should be updated. (It seems that currently the cache contains
> only old regular links not my new "arrow" links.)
>
> Please help me to update all these pages. The thing I really need is to
> re-process every of these pages with ParserAfterTidy hook. (My hook
> adds the arrow keys to backlinks cache.)
>
> My current workaround is to run maintenance/update.php periodically.
> This updates the red links to blue as appropriate, but this does not
> help to make blue links after future edits.
>
> Note that I run maintenance/runJobs.php every minute. The software
> works correctly with these pages which I recently edited, but not with
> constant non-editable pages in Tanakh: namespace.
>
> Note that it all works well if I edit the page with my links. But I
> cannot edit all pages in Tanakh: namespace both because they are a
> multitude and because they are non-editable.
>
> ___
> Wikitech-l mailing list
> Wikitech-l@lists.wikimedia.org
> https://lists.wikimedia.org/mailman/listinfo/wikitech-l

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

[Wikitech-l] How to clear backlinks cache?

2017-01-24 Thread Victor Porton
The red/blue status of links with "arrows" produced by my
NamespacePopups extension is not updated on my site after I create a
new page to which the arrow link points (and so it should change from
red to blue).

Example of my page with arrows:
https://withoutvowels.org/wiki/Tanakh:Genesis_1:7

I think this is because of the backlinks cache.

I have 23253 pages in the namespace Tanakh:. Cache of links from every
of them should be updated. (It seems that currently the cache contains
only old regular links not my new "arrow" links.)

Please help me to update all these pages. The thing I really need is to
re-process every of these pages with ParserAfterTidy hook. (My hook
adds the arrow keys to backlinks cache.)

My current workaround is to run maintenance/update.php periodically.
This updates the red links to blue as appropriate, but this does not
help to make blue links after future edits.

Note that I run maintenance/runJobs.php every minute. The software
works correctly with these pages which I recently edited, but not with
constant non-editable pages in Tanakh: namespace.

Note that it all works well if I edit the page with my links. But I
cannot edit all pages in Tanakh: namespace both because they are a
multitude and because they are non-editable.

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