예제 #1
0
 function run()
 {
     $update = new HTMLCacheUpdate($this->title, $this->table);
     $fromField = $update->getFromField();
     $conds = $update->getToCondition();
     if ($this->start) {
         $conds[] = "{$fromField} >= {$this->start}";
     }
     if ($this->end) {
         $conds[] = "{$fromField} <= {$this->end}";
     }
     $dbr =& wfGetDB(DB_SLAVE);
     $res = $dbr->select($this->table, $fromField, $conds, __METHOD__);
     $update->invalidateIDs(new ResultWrapper($dbr, $res));
     $dbr->freeResult($res);
     return true;
 }