Last modified: 2009-11-12 22:43:57 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 17451 - Title::invalidateCache() does not commit database update
Title::invalidateCache() does not commit database update
Product: MediaWiki
Classification: Unclassified
Page editing (Other open bugs)
All All
: Normal enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
: patch, patch-need-review
Depends on:
  Show dependency treegraph
Reported: 2009-02-11 20:21 UTC by Ralph Taylor
Modified: 2009-11-12 22:43 UTC (History)
5 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---

Diff fiel adding the commit() Database function (30 bytes, patch)
2009-02-11 20:21 UTC, Ralph Taylor
Diff formatted correctly with context and marked against trunk (298 bytes, patch)
2009-02-15 01:23 UTC, Ralph Taylor

Description Ralph Taylor 2009-02-11 20:21:37 UTC
Created attachment 5805 [details]
Diff fiel adding the commit() Database function

Use Case:

A developer is creating an Magic word that creates Wiki Text based on data from a separate database.  When using a special page, or alternate method, to update the separate database the developer uses the Mediawiki Title class to invalidate the Cache pages.

However as the code in version 1.13.2 and the current version in SVN does not commit the database transaction the page_touched field is not updated.

Attached is a Diff file adding in the commit function from the Database class to ensure that the page_touched field is updated correctly.
Comment 1 Siebrand Mazeland 2009-02-15 00:41:46 UTC
Patch misses context, and is not based on current.
Comment 2 Ralph Taylor 2009-02-15 01:23:50 UTC
Created attachment 5813 [details]
Diff formatted correctly with context and marked against trunk
Comment 3 Ralph Taylor 2009-02-15 02:12:12 UTC
updated mediawiki version
Comment 4 Andrew Garrett 2009-03-05 00:41:31 UTC
Where is the transaction in question begun?
Comment 5 Bryan Tong Minh 2009-11-12 22:43:57 UTC
Comitting is handled by the LoadBalancer, right? WORKSFORME

Note You need to log in before you can comment on or make changes to this bug.