https://bugzilla.wikimedia.org/show_bug.cgi?id=41171
Web browser: ---
Bug #: 41171
Summary: User::edits() and User::incEditCount() should be
refactored
Product: MediaWiki
Version: unspecified
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: General/Unknown
AssignedTo: [email protected]
ReportedBy: [email protected]
Classification: Unclassified
Mobile Platform: ---
User::edits() let you fetch a cached number of edit from a slave database.
Whenever the field is not yet, we initialize the stats by hitting `revision`
table and saving he user editcount.
User::incEditCounts() update the user counter but also does a a lazy
initialization albeit from the slave database and is inaccurate (though we
probably do not care that much).
Both methods uses the same $dbw->update() statement.
I think there is some potential there to merge both methods in a new clean one
:-]
--
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
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l