Editing
Help:Job queue
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
The '''job queue''' performs long-running tasks asynchronously. The job queue is designed to hold many short tasks using [[wikipedia:batch processing|batch processing]]. ==Job examples== ===Updating links tables when a template changes=== When a template changes, MediaWiki adds a job to the job queue for each article transcluding that template. Each job is a command to read an article, expand any templates, and update the link table accordingly. Previously, the host articles would remain outdated until either their parser cache expires or until a user edits the article. ===HTML cache invalidation=== A wider class of operations can result in invalidation of the HTML cache for a large number of pages: * Changing an image (all the thumbnails have to be re-rendered, and their sizes recalculated) * Deleting a page (all the links to it from other pages need to change from blue to red) * Creating or undeleting a page (like above, but from red to blue) * Changing a template (all the pages that transclude the template need updating) Except for template changes, these operations do not invalidate the links tables, but they do invalidate the HTML cache of all pages linking to that page, or using that image. Invalidating the cache of a page is a short operation; it only requires updating a single database field and sending a multicast packet to clear the caches. But if there are more than about 1000 to do, it takes a long time. By default, one job is added per 300 operations. Note, however, that even if purging the cache of a page is a short operation, reparsing a complex page that is not in the cache may be expensive, specially if a highly used template is edited and causes lots of pages to be purged in a short period of time and your wiki has lots of concurrent visitors loading a wide spread of pages. ==Typical values== During a period of low load, the job queue might be zero. On the Brighter Shores Wiki in off-peak hours, it might be near 0 but during a busy day it may be few hundred to a thousand but it can quickly fluctuate by 10% or more. The current number of jobs in the queue can be viewed using the api: <code>api.php?action=query&meta=siteinfo&siprop=statistics</code> ([[Special:ApiSandbox#action=query&format=json&meta=siteinfo&siprop=statistics|try in API sandbox]]). ==See also== * [[mw:Manual:Job queue|Manual:Job queue]] * [[wikipedia:Help:Job queue|help:Job queue]] {{Help}}
Summary:
Please note that all contributions to Brighter Shores Wiki are considered to be released under the CC BY-NC-SA 3.0 (see
Brighter Shores:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Templates used on this page:
Template:Help
(
edit
)
Template:Navbox
(
edit
)
Module:Navbox
(
edit
)
Module:Tnavbar
(
view source
) (semi-protected)
Module:Yesno
(
view source
) (semi-protected)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Help page
Discussion
British English
Views
Read
Edit source
View history
More
Refresh
Search
Discord
Discord
Navigation
About us
User help
Random page
Recent changes
Strength Cryonae
4m
ago
-
Alsang
Strength Arborae
4m
ago
-
Alsang
+80 Potent Potion Strength Cryonae
5m
ago
-
Alsang
+80 Preparation Strength Cryonae
5m
ago
-
Alsang
Show more...
Brighter Shores
Professions
Factions
Episodes
Premium Pass
Monsters
Quests
Community
Policies
Tools
What links here
Related changes
Special pages
Page information