Skip to content
代码片段 群组 项目
提交 dde69bfb 编辑于 作者: Francisco Javier López's avatar Francisco Javier López 提交者: Stan Hu
浏览文件

Added list_pages method to avoid loading all wiki pages content

Inside a wiki, when we show the sidebar or browse to the `pages`,
all page contents are retrieved from Gitaly and that is a waste
of resources, since no content from that pages are going to be
showed.

This MR introduces the method `ProjectWiki#list_pages`,
which uses new wiki_list_pages RPC call to retrieve
pages without content

Also in the `WikisController` we're using the method to show
pages in the sidebar and also on the `pages` page.
上级 0f863c68
No related branches found
No related tags found
加载中
显示 188 个添加85 个删除
加载中
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册