Merge "Clear page data cache after posting a reply"

This commit is contained in:
jenkins-bot 2020-10-22 21:37:13 +00:00 committed by Gerrit Code Review
commit 8cd5dc386b

View file

@ -254,6 +254,10 @@ function update( data, comment, pageName, replyWidget ) {
var watch,
pageUpdated = $.Deferred();
// We posted a new comment, clear the cache, because wgCurRevisionId will not change if we posted
// to a transcluded page (T266275)
pageDataCache[ mw.config.get( 'wgRelevantPageName' ) ][ mw.config.get( 'wgCurRevisionId' ) ] = null;
replyWidget.teardown();
// TODO: Tell controller to teardown all other open widgets