Page MenuHomePhabricator

File upload should clear parser and file cache on usage pages
Open, LowPublic

Description

Problem:
Embed a non-existing image > save the page > follow the red link > upload the image > return to article >> image is not there.
Even worse: If filecache is used, anons will not see it until the next edit.

Solution:
On file upload complete, check if file is used on pages already. If so, clear parser and file cache of these pages.

Event Timeline

Subfader raised the priority of this task from to Needs Triage.
Subfader updated the task description. (Show Details)
Subfader added a subscriber: Subfader.
Subfader set Security to None.
Subfader updated the task description. (Show Details)
Restricted Application added a subscriber: Steinsplitter. · View Herald Transcript

Cannot reproduce on mw.org: https://www.mediawiki.org/wiki/User:Subfader/Upload_red_link_after_saving

I fear this is related to T109533.

Some extension using the PageContentSaveComplete hook maybe. Will investigate.

Cannot reproduce on mw.org

@Subfader: So on which site did the issue happen? (Exact steps to reproduce always welcome, because of such situations.)