Page MenuHomePhabricator

BasePage.purge should clear all local Page state
Closed, ResolvedPublic

Description

Calling BasePage.purge forces the server to clear its cache for a page, and should probably also cause the client local state variables to also be cleared, so that subsequent use of the Page on the client will obtain fresh data from the server.

Event Timeline

jayvdb raised the priority of this task from to Needs Triage.
jayvdb updated the task description. (Show Details)
jayvdb added a project: Pywikibot.

That issue seems similar to the fact that deleting latest_revision_id also doesn't properly reset everything. So maybe there should be one “clear_cache” which is called by both latest_revision_id.deleter and purge?

That issue seems similar to the fact that deleting latest_revision_id also doesn't properly reset everything. So maybe there should be one “clear_cache” which is called by both latest_revision_id.deleter and purge?

See T114624 ;-)

Change 271980 had a related patch set uploaded (by Dalba):
site.py: Delete cached page attributes after deleting the page

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

Change 271980 merged by jenkins-bot:
page.py: Create a new function to clear cached page attributes

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