Index: trunk/extensions/StrategyWiki/ActiveStrategy/ActiveStrategy_body.php |
— | — | @@ -14,6 +14,7 @@ |
15 | 15 | array( |
16 | 16 | 'page_namespace' => 0, |
17 | 17 | "page_title LIKE 'Task_force/%'", |
| 18 | + "page_title NOT LIKE 'Task_force/%/%'", |
18 | 19 | ), __METHOD__ ); |
19 | 20 | |
20 | 21 | return $res; |
— | — | @@ -206,9 +207,12 @@ |
207 | 208 | } |
208 | 209 | |
209 | 210 | $article = new Article( Title::newFromText( $taskForce ) ); |
210 | | - $content = $article->getContent(); |
| 211 | + |
| 212 | + $dbr = wfGetDB( DB_SLAVE ); |
211 | 213 | |
212 | | - $count = self::parseMemberList( $content ); |
| 214 | + $count = $dbr->selectField( 'pagelinks', 'count(*)', |
| 215 | + array( 'pl_from' => $article->getId(), |
| 216 | + 'pl_namespace' => NS_USER ), __METHOD__ ); |
213 | 217 | |
214 | 218 | $wgMemc->set( $key, $count, 86400 ); |
215 | 219 | |