Page MenuHomePhabricator

Title::invalidateCache() does not commit database update
Closed, DeclinedPublic

Description

Author: djnrrd

Description:
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.


Version: 1.15.x
Severity: enhancement

attachment Title.diff ignored as obsolete

Details

Reference
bz17451

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 10:26 PM
bzimport set Reference to bz17451.
bzimport added a subscriber: Unknown Object (MLST).

Patch misses context, and is not based on current.

djnrrd wrote:

Diff formatted correctly with context and marked against trunk

Attached:

djnrrd wrote:

updated mediawiki version

Where is the transaction in question begun?

Bryan.TongMinh wrote:

Comitting is handled by the LoadBalancer, right? WORKSFORME