Page MenuHomePhabricator

action=purge should clear the cache for TextExtracts
Closed, ResolvedPublic

Description

Because of a previous error the article St. Georg (Nördlingen) showed an empty page. An action=purge fixed this. The HoverCard is still not shown because the TextExtract is empty: "extract":"" (https://de.wikipedia.org/w/api.php?action=query&format=json&prop=extracts|pageimages|revisions&formatversion=2&redirects=true&exintro=true&exsentences=5&explaintext=true&piprop=thumbnail&pithumbsize=300&rvprop=timestamp&titles=St._Georg_%28N%C3%B6rdlingen%29&smaxage=300&maxage=300&uselang=content) TextExtract has it own cache.

To repair such problems it would be useful to clear the TextExtract cache on action=purge.

The function cacheKey() in ApiQueryExtracts.php has to include something from WikiPage which get changed on doPurge().

Event Timeline

Fomafix raised the priority of this task from to Low.
Fomafix updated the task description. (Show Details)
Fomafix subscribed.
Fomafix set Security to None.

The function cacheKey() in ApiQueryExtracts.php has to include something from WikiPage which get changed on doPurge().

page_touched?

Change 250293 had a related patch set uploaded (by Legoktm):
Use page_touched in cache key instead of page_latest

https://gerrit.wikimedia.org/r/250293

Change 250293 merged by jenkins-bot:
Use page_touched in cache key instead of page_latest

https://gerrit.wikimedia.org/r/250293

Legoktm claimed this task.