Page purge queue daemon (for template updates, etc)
Closed, ResolvedPublic

Description

Large updates for some things are currently handled sub-ideally or not at all:

  • slow: cache purges on creation/deletion
  • slow: cache purges on template change
  • not at all: link table updates on template change

For large numbers of affected pages, trying to update page_touched records and send squid
purges during a save operation can be prohibitively slow, leading to transaction failures
or replication lag due to the serialized nature of MySQL replication.

As the wikis continue to grow, and templates are commonly used for things like
standardizing categorization, we get requests to manually run refreshLinks to update
category membership and such. That kinda sucks, so we should think about implementing a
purge queue, as discussed in past years but never yet gotten to.

The names of pages to purge or re-link can be sucked out of the database and stuffed in a
queue for processing after the save: generally these operations don't need to be
_immediate_, they just need to happen soonish.

For Wikimedia and other dedicated sites, we can have a daemon or other regular dedicated
process churn through this queue. For third-party sites on a default install it could be
done "in the background" during other page hits or some such, or just left as an
'advanced' feature.


Version: 1.6.x
Severity: normal

bzimport added a project: MediaWiki-Page-editing.Via ConduitNov 21 2014, 9:05 PM
bzimport added a subscriber: wikibugs-l.
bzimport set Reference to bz4857.
brion created this task.Via LegacyFeb 4 2006, 8:18 AM
bzimport added a comment.Via ConduitFeb 9 2006, 8:44 PM

robchur wrote:

*** Bug 2098 has been marked as a duplicate of this bug. ***

bzimport added a comment.Via ConduitFeb 9 2006, 9:27 PM

gangleri wrote:

moving dependencies from bug 2098 to this bug
blocks Bug 2331: (FIXED) undeleting pages does not add the pages to categories
blocks Bug 4713: Moved pages dissapear from "Whatlinkshere" of templates they
include

tstarling added a comment.Via ConduitMar 7 2006, 6:10 AM

We have this now.

Add Comment