Page MenuHomePhabricator

Hook request for onCategorizationChange
Open, LowestPublic

Description

I want to request a new hook that can be called when categorization changed.

Use case: I store all category names and number of childs in memcache.

Atm I have to call all kinds of hooks for that: edit, move and deletition hooks.

And onPageContentSaveComplete won't tell you if categorization changed so I flush my cache uselessly 90% of the time.

So a hook would be nice that is fired whenever the category table changes.

Event Timeline

Subfader created this task.Feb 1 2016, 12:24 AM
Subfader raised the priority of this task from to Needs Triage.
Subfader updated the task description. (Show Details)
Subfader added a project: MediaWiki-Categories.
Subfader added a subscriber: Subfader.
Restricted Application added subscribers: StudiesWorld, Aklapper. · View Herald TranscriptFeb 1 2016, 12:24 AM
Aklapper triaged this task as Lowest priority.Feb 2 2016, 12:36 PM

Update: MW 1.27 destroyed the usage of all these hooks since categorization is fired after onPageContentSaveComplete.

onPageContentSaveComplete does not like this :(

Subfader raised the priority of this task from Lowest to Normal.Sep 9 2016, 9:00 PM

@Subfader: The priority of this task was increased.
As priority reflects reality and does not cause it, do you plan to work on this task? If so, please claim the task by setting yourself as assignee. Thank you for your help!

Aklapper lowered the priority of this task from Normal to Lowest.Sep 24 2016, 7:25 PM