6 function SquidUpdate( $title, $urlArr = Array() )
9 $this->urlArr
= $urlArr;
15 if (count( $this->urlArr
) == 0) { // newly created Article
16 /* prepare the list of urls to purge */
17 $id= $this->title
->getArticleID();
18 $sql = "SELECT l_from FROM links WHERE l_to={$id}" ;
19 $res = wfQuery ( $sql, DB_READ
) ;
20 while ( $BL = wfFetchObject ( $res ) )
22 $t = Title
::newFromDBkey( $BL->l_from
) ;
23 $this->urlArr
[] = $t->getInternalURL() ;
25 wfFreeResult ( $res ) ;
29 wfPurgeSquidServers($this->urlArr
);