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.
Description
Description
Details
Details
Subject | Repo | Branch | Lines +/- | |
---|---|---|---|---|
page.py: Create a new function to clear cached page attributes | pywikibot/core | master | +24 -2 |
Status | Subtype | Assigned | Task | ||
---|---|---|---|---|---|
Resolved | Dalba | T114624 Defined approach to clear all local state from BasePage objects | |||
Resolved | Dalba | T114625 BasePage.purge should clear all local Page state |
Event Timeline
Comment Actions
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?
Comment Actions
Change 271980 had a related patch set uploaded (by Dalba):
site.py: Delete cached page attributes after deleting the page
Comment Actions
Change 271980 merged by jenkins-bot:
page.py: Create a new function to clear cached page attributes