Exemplo n.º 1
0
 /**
  * @param Title $title
  * @return array
  */
 public static function getSquidURLs(Title $title)
 {
     $urls = [];
     $articleId = $title->getArticleId();
     // Only page 1 is cached in varnish when lazy loading is on
     // Other pages load with action=ajax&rs=ArticleCommentsAjax&method=axGetComments
     $urls[] = ArticleCommentsController::getUrl('Content', ['format' => 'html', 'articleId' => $articleId, 'page' => 1, 'skin' => 'true']);
     wfRunHooks('ArticleCommentGetSquidURLs', [$title, &$urls]);
     return $urls;
 }