https://bugzilla.wikimedia.org/show_bug.cgi?id=23305
Summary: Title::invalidateCache() doesn't work when called within the same second as Article::doEdit() Product: MediaWiki Version: 1.16-svn Platform: All OS/Version: All Status: NEW Severity: normal Priority: Normal Component: Page editing AssignedTo: wikibugs-l@lists.wikimedia.org ReportedBy: worden....@gmail.com Created an attachment (id=7327) --> (https://bugzilla.wikimedia.org/attachment.cgi?id=7327) patch for ParserOutput.php To edit several pages and have them all be parsed the next time they are viewed, an extension can save the edits with $article->doEdit() (with some expensive operations disabled), then expire the affected pages from the parser cache using $title->invalidateCache() afterward. Unfortunately, this doesn't work if doEdit() and invalidateCache() are called in the same second. The attached patch fixes this problem by changing a < to <= in ParserOutput.php. However, this introduces a possible bug opposite to the existing one, in that calling invalidateCache() just BEFORE doEdit() can cause the page to be reparsed unnecessarily. It could also cause other problems, of course... -- Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. You are on the CC list for the bug. _______________________________________________ Wikibugs-l mailing list Wikibugs-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikibugs-l