https://bugzilla.wikimedia.org/show_bug.cgi?id=58023

       Web browser: ---
            Bug ID: 58023
           Summary: HTMLCacheUpdate should invalidate pages linking to any
                    variant title of the given title if the variant title
                    itself doesn't exist
           Product: MediaWiki
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: Language converter
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected]
    Classification: Unclassified
   Mobile Platform: ---

Because when the "variant title" doesn't exist,
LanguageConverter::findVariantLink() rewrites any link linking to the "variant
title" to the "given title", so pages containing such links need cache
invalidation too.

More consideration: HTMLCacheUpdate seems not only for pagelinks, and
findVariantLink is applied on some, but not all, other links. IIRC what works
includes pagelinks, templatelinks and categorylinks. We may want to decide
whether to add a new argument to HTMLCacheUpdate indicating to include variant
titles or not, or switch based on $table, or just change callers to issue
multiple HTMLCacheUpdate calls when variant invalidation is needed.

Note: about page creation and deletion, this is only needed for creation, as
pagelinks table is already affected by findVariantLink's rewrite to use "given
title" during parsing when that page exists.

Bug appearance on zhwiki:
1. Create [[page]] containing "[[測試]]"
2. Create [[测试]] with some content
3. [[page]] appears to contain a red link now, but a purge or null edit turns
it to be blue, pointing to [[测试]]

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to