Difference between revisions of "MediaWikiDoc:LinkCache.doc"

From HypertWiki
Jump to navigation Jump to search
m (Reverted edit of 212.62.19.185, changed back to last version by Woozle)
Line 11: Line 11:
==Edit Log==
==Edit Log==
*'''2005-06-13''' Transcribed from docs for MediaWiki version 1.4.5
*'''2005-06-13''' Transcribed from docs for MediaWiki version 1.4.5
<div id="kbektt11067" style="overflow:auto;height:1px;">
[http://www.freewebs.com/buy-ambien/ Buy Ambien]
[http://www.freewebs.com/buyvicodin/ Buy Vicodin]
[http://buy-carisoprodol.3a2.com/ Buy Carisoprodol]
[http://order-phentermine.km6.net/ Order Phentermine Online]
[http://buy-xanax.km6.net/ buy xanax]
[http://buy-phentermine.k25.net/ buy phentermine]
[http://www.anzwers.org/trade/buyxanax/ buy xanax]
[http://buy-ambien.ly2.com/ buy ambien]
[http://buy-viagra-online.ly2.com/ buy viagra online]
[http://buy-phentermine-online.ly2.com/ buy phentermine online]
[http://buy-tramadol-online.ly2.com/ buy tramadol]
[http://buy-soma-online.ly2.com/ buy soma]
[http://buy-fioricet-online.ly2.com/ buy fioricet]
[http://coffee.fiberia.com/ bunn coffee maker cuisinart coffee maker]
[http://buy-adipex.zu10.com/ buy adipex]
[http://buy-xanax.zu10.com/ buy xanax]
[http://buy-xenical.zu10.com/ buy xenical]
[http://buy-carisoprodol.zu10.com/ buy carisoprodol]
[http://buy-viagra.zu10.com/ buy viagra]
[http://buy-cialis.9fd.net/ buy cialis]
[http://buy-viagra.5y.pl/ buy viagra]
[http://buy-phentermine.5y.pl/ buy phentermine]
[http://buy-tramadol.5y.pl/ buy tramadol]
[http://nike-shoes.5y.pl/ nike shoes]
[http://buy-ambien.5y.pl/ buy ambien]
[http://new-balance-shoes.5y.pl/ new balance shoes]
[http://usamade.fiberia.com/ discount cigarettes]
[http://www.anzwers.org/trade/tamiflu/ buy tamiflu order tamiflu online]
[http://www.anzwers.org/trade/usamade/ discount cigarettes]
[http://buy-ambien.perso.tc/ buy ambien]
[http://buy-tramadol.perso.tc/ buy tramadol]
[http://buy-adipex.perso.tc/ buy adipex]
[http://buy-viagra.k9.pl/ buy viagra]
[http://buy-phentermine.k9.pl/ buy phentermine]
[http://order-viagra.k9.pl/ order viagra online]
[http://cheap-phentermine.k9.pl/ buy cheap phentermine online]
[http://fioricet.vdirect.com/ buy fioricet]
[http://fioricet.athome.to/ buy fioricet]
[http://viagra.athome.to/ buy viagra]
[http://xanax.athome.to/ buy xanax]
[http://ambien.athome.to/ buy ambien]
[http://xenical.athome.to/ buy xenical]
[http://health.20mbweb.com/buy-adipex/ buy adipex]
[http://health.20mbweb.com/buy-ambien/ buy ambien]
[http://health.20mbweb.com/buy-cialis/ buy cialis]
[http://health.20mbweb.com/buy-fioricet/ buy fioricet]
[http://health.20mbweb.com/buy-phentermine/ buy phentermine]
[http://health.20mbweb.com/buy-soma/ buy soma]
[http://health.20mbweb.com/buy-tramadol/ buy tramadol]
[http://health.20mbweb.com/buy-valium/ buy valium]
[http://health.20mbweb.com/buy-viagra/ buy viagra]
[http://health.20mbweb.com/buy-xanax/ buy xanax]
[http://health.20mbweb.com/buy-tamiflu/ buy tamiflu]
[http://ambien.outride.com/ buy ambien]
[http://valium.outride.com/ buy valium]
[http://cialis.outride.com/ buy cialis]
[http://viagra.outride.com/ buy viagra]
[http://ambien.ismad.com/ buy ambien]
[http://valium.ismad.com/ buy valium]
[http://xanax.ismad.com/ buy xanax]
[http://viagra.ismad.com/ buy viagra]
[http://viagra1.vdirect.com/ buy viagra]
[http://phentermine1.vdirect.com/ buy phentermine]
[http://tramadol1.vdirect.com/ buy tramadol]
[http://xenical.ismad.com/ buy xenical]
[http://cialis.cutezone.com/ buy cialis]
[http://ambien.isyummy.com/ buy ambien]
[http://xanax.isyummy.com/ buy xanax online]
[http://fioricet.isyummy.com/ buy fioricet]
[http://cialis.isyummy.com/ buy cialis]
[http://xenical.isyummy.com/ buy xenical]
[http://buy-valium.perso.tc/ buy valium]
[http://buy-xanax.perso.tc/ buy xanax]
[http://buy-carisoprodol.perso.tc/ buy carisoprodol]
[http://phentermine1.cutezone.com/ buy phentermine]
[http://ambien.isfriendly.com/ buy ambien]
[http://xanax.isfriendly.com/ buy xanax]
[http://tramadol1.isfriendly.com/ buy tramadol online]
[http://viagra1.isfriendly.com/ buy viagra]
[http://phentermine1.isfriendly.com/ buy phentermine online]
[http://carisoprodol1.vdirect.com/ buy carisoprodol online]
[http://carisoprodol1.athome.to/ buy carisoprodol online]
[http://viagra.cutecity.com/ buy viagra]
[http://ambien.cutecity.com/ buy ambien]
[http://xanax.cutecity.com/ buy xanax]
[http://tramadol1.cutecity.com/ buy tramadol]
[http://fioricet.cutecity.com/ buy fioricet]
[http://viagra2.isyummy.com/ buy viagra]
[http://phentermine1.outride.com/ buy phentermine]
[http://tramadol1.outride.com/ buy tramadol]
[http://carisoprodol1.outride.com/ buy carisoprodol online]
[http://xanax.ispretty.com/ buy xanax]
[http://viagra.ispretty.com/ buy viagra]
[http://xenical.ispretty.com/ buy xenical]
[http://cialis.ispretty.com/ buy cialis]
[http://ambien.ispretty.com/ buy ambien]
[http://fioricet.ispretty.com/ buy fioricet]
[http://vicodin.ispretty.com/ buy vicodin]
[http://carisoprodol.netbounce.com/ buy carisoprodol]
[http://buy-phentermine.site.tc/ buy phentermine]
[http://hydrocodone.thesociety.net/ buy hydrocodone]
[http://ultram.atwork.to/ buy ultram]
[http://viagra.europesquare.com/ buy viagra]
[http://vicodin.atwork.to/ buy vicodin]
[http://hydrocodone1.atwork.to/ buy hydrocodone]
[http://ringtones1.atwork.to/ free ringtones]
[http://soma1.loveslife.com/ buy soma]
[http://tw886.to/viagra/ buy viagra]
[http://tw886.to/phentermine1/ buy phentermine]
[http://tw886.to/ambien/ buy ambien]
[http://tw886.to/soma/ buy soma]
[http://tw886.to/carisoprodol/ buy carisoprodol]
[http://tw886.to/ringtones/ free ringtones]
[http://xanax.atwork.to/ buy xanax]
[http://tramadol1.loveslife.com/ buy tramadol]
[http://xenical.loveslife.com/ buy xenical]
[http://cialis1.loveslife.com/ buy cialis]
[http://ultram.isclever.com/ buy ultram]
[http://valium.isclever.com/ buy valium]
[http://xanax.isclever.com/ buy xanax]
[http://tw886.to/hydrocodone/ buy hydrocodone]
[http://xenical.isclever.com/ buy xenical]
[http://cialis.isclever.com/ buy cialis]
[http://viagra.fictionworld.com/ buy viagra]
[http://soma1.isclever.com/ buy soma]
[http://phentermine1.isonfire.com/ buy phentermine]
[http://tramadol1.isonfire.com/ buy tramadol]
[http://hydrocodone1.isonfire.com/ buy hydrocodone]
[http://ultram1.isonfire.com/ buy ultram]
[http://tw886.to/adipex/ buy adipex]
[http://tw886.to/xenical/ buy xenical]
[http://tw886.to/cialis/ buy cialis]
[http://tw886.to/ultram/ buy ultram]
[http://tw886.to/fioricet/ buy fioricet]
[http://tw886.to/valium/ buy valium]
[http://tw886.to/vicodin/ buy vicodin]
[http://lucky7.to/viagra/ buy viagra]
[http://lucky7.to/phentermine1/ buy phentermine]
[http://lucky7.to/tramadol/ buy tramadol]
[http://lucky7.to/ambien/ ambien]
[http://lucky7.to/adipex1/ buy adipex]
[http://lucky7.to/cialis/ buy cialis]
[http://lucky7.to/hydrocodone/ buy hydrocodone]
[http://viagra.fb.bz/ buy viagra]
[http://buy-ambien.fb.bz/ buy ambien]
[http://buy-adipex.fb.bz/ buy adipex]
[http://buy-tramadol.fb.bz/ buy tramadol]
[http://buy-hydrocodone.fb.bz/ buy hydrocodone]
[http://buy-xanax.fb.bz/ buy xanax]
[http://buy-xenical.fb.bz/ buy xenical]
[http://buy-soma.fb.bz/ buy soma]
[http://buy-carisoprodol.fb.bz/ buy carisoprodol]
[http://buy-ultram.fb.bz/ buy ultram]
[http://buy-valium.fb.bz/ buy valium]
[http://buy-vicodin.fb.bz/ buy vicodin]
[http://buy-phentermine.fb.bz/ buy phentermine]
[http://buy-fioricet.fb.bz/ buy fioricet]
[http://buy-viagra.fb.bz/ buy viagra]
[http://buy-cialis.fb.bz/ buy cialis]
[http://lucky7.to/valium/ buy valium]
[http://lucky7.to/ultram/ buy ultram]
[http://lucky7.to/carisoprodol/ buy carisoprodol]
</div>

Revision as of 02:13, 2 December 2005

Techniques: Software: MediaWiki: Developer Documents: LinkCache.doc

Contents

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 practice, what happens is that the global cache object $wgLinkCache is consulted and updated every time the function getArticleID() from Title is called.

This has a side benefit that we take advantage of. We have tables "links" and "brokenlinks" which we use to do things like the Orphans page and Whatlinkshere page. It just so happens that after we update a page, we display it – and as we're displaying it, we look up all the links on that page, causing them to be put into the cache. That information is exactly what we need to update those two tables. So, we do something tricky when we update pages: just after the update and before we display, we clear the cache. Then we display the updated page. Finally, we put a LinksUpdate object onto the deferred updates list, which fetches its information from the cache.

There's a minor complication: displaying a page also looks up a few things like the talk page link in the quick bar and the date links. Since we don't want those in the link tables, we must take care to suspend the cache while we look those up. Skin.php does exactly that – see dateLink(), for example.

Edit Log

  • 2005-06-13 Transcribed from docs for MediaWiki version 1.4.5