X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=docs%2Flinkcache.txt;h=cf28762ad5feed6be1b24cb7daced24323e8a046;hb=9c7f6734c397a954b8eaa5ec73876f2b4bf92afb;hp=22b40d5825fbf80944139e0bba9c759cb7857551;hpb=fb38bbf72f7755a40cb8b277fe2f4244b1477fcd;p=lhc%2Fweb%2Fwiklou.git diff --git a/docs/linkcache.txt b/docs/linkcache.txt index 22b40d5825..cf28762ad5 100644 --- a/docs/linkcache.txt +++ b/docs/linkcache.txt @@ -8,21 +8,17 @@ batches with the LinkBatch class, or the equivalent in Parser::replaceLinkHolder 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 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(); +$pages = [ 'Main Page', 'Project:Help', /* ... */ ]; +$titles = []; foreach( $pages as $page ){ $titles[] = Title::newFromText( $page ); } $batch = new LinkBatch( $titles ); -$batch->execute(); \ No newline at end of file +$batch->execute();