diff options
author | Alexandre Emsenhuber <ialex@users.mediawiki.org> | 2008-03-13 19:00:19 +0000 |
---|---|---|
committer | Alexandre Emsenhuber <ialex@users.mediawiki.org> | 2008-03-13 19:00:19 +0000 |
commit | fb38bbf72f7755a40cb8b277fe2f4244b1477fcd (patch) | |
tree | 3c5ddf9427ddf9b36cf7c76c10a9176debf39e87 /docs | |
parent | d2fb76915aab972316f0e3015c9920074c71293b (diff) | |
download | mediawikicore-fb38bbf72f7755a40cb8b277fe2f4244b1477fcd.tar.gz mediawikicore-fb38bbf72f7755a40cb8b277fe2f4244b1477fcd.zip |
docs update
Notes
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/31933
Diffstat (limited to 'docs')
-rw-r--r-- | docs/deferred.txt | 18 | ||||
-rw-r--r-- | docs/linkcache.txt | 36 | ||||
-rw-r--r-- | docs/skin.txt | 1 |
3 files changed, 40 insertions, 15 deletions
diff --git a/docs/deferred.txt b/docs/deferred.txt index 06155c56a104..fb9b84818dd9 100644 --- a/docs/deferred.txt +++ b/docs/deferred.txt @@ -1,4 +1,3 @@ - deferred.txt A few of the database updates required by various functions here @@ -25,3 +24,20 @@ may be extended in the future to more general background tasks. Job queue items are fetched out of the queue and run either at a random rate during regular page views (by default) or by a batch process which can be run via maintenance/runJobs.php. + +Currently there is some differents types of Jobs: + + refreshLinks + Used to refresh the database tables that stores the links + beetween pages. When a page is cleared, all pages using these + page are also cleared by inseting a new job for all that pages. + Each job refresh only one page. + + htmlCacheUpdate + clear caches when a template is changed to ensure that changes + can be see. Each job clear $wgUpdateRowsPerJob pages (500 by + default). + + enotifNotify + used when $wgEnotifUseJobQ is true to send mails using the job + queue.
\ No newline at end of file diff --git a/docs/linkcache.txt b/docs/linkcache.txt index 3e9799c31e04..22b40d5825fb 100644 --- a/docs/linkcache.txt +++ b/docs/linkcache.txt @@ -1,18 +1,28 @@ linkcache.txt -The LinkCache class maintains a list of article titles and -the information about whether or not the article exists in -the database. This is used to mark up links when displaying -a page. If the same link appears more than once on any page, -then it only has to be looked up once. In most cases, link -lookups are done in batches with the LinkBatch class, or the -equivalent in Parser::replaceLinkHolders(), so the link -cache is mostly useful for short snippets of parsed text -(such as the site notice), and for links in the navigation -areas of the skin. +The LinkCache class maintains a list of article titles and the information about +whether or not the article exists in the database. This is used to mark up links +when displaying a page. If the same link appears more than once on any page, +then it only has to be looked up once. In most cases, link lookups are done in +batches with the LinkBatch class, or the equivalent in Parser::replaceLinkHolders(), +so the link cache is mostly useful for short snippets of parsed text (such as +the site notice), and for links in the navigation areas of the skin. -The link cache was formerly used to track links used in a -document for the purposes of updating the link tables. This -application is now deprecated. +The content of the LinkCache can be stored in memcached if $wgLinkCacheMemcached +is set to true. This can reduce the load of the database server as link cache +will be persistent between requests. +The link cache was formerly used to track links used in a document for the +purposes of updating the link tables. This application is now deprecated. +To create a batch, you can use the following code: + +$pages = array( 'Main Page', 'Project:Help', /* ... */ ); +$titles = array(); + +foreach( $pages as $page ){ + $titles[] = Title::newFromText( $page ); +} + +$batch = new LinkBatch( $titles ); +$batch->execute();
\ No newline at end of file diff --git a/docs/skin.txt b/docs/skin.txt index ce2d0b766e8c..f58805eeca83 100644 --- a/docs/skin.txt +++ b/docs/skin.txt @@ -1,4 +1,3 @@ - skin.txt This document describes the overall architecture of MediaWiki's HTML rendering |