Modify cache keys which have low hit rate. (#1596)
* Change worker line in procfile * mod buildpacks * Add bin/start-pgbouncer * Modify procfile * Remove bin/start-pgbouncer * Make artice show caching more effective
This commit is contained in:
parent
9ccf0a07cb
commit
c28e3a4d54
1 changed files with 2 additions and 2 deletions
|
|
@ -205,7 +205,7 @@
|
|||
<% end %>
|
||||
<% end %>
|
||||
</div>
|
||||
<% cache("article-bottom-content-#{@article.cached_tag_list_array.sort}", :expires_in => 12.hours) do %>
|
||||
<% cache("article-bottom-content-#{@article.cached_tag_list_array.sample}", :expires_in => 18.hours) do %>
|
||||
<% @classic_article = Suggester::Articles::Classic.new(@article).get %>
|
||||
<% if @classic_article %>
|
||||
<%= render "additional_content_boxes/article_box",
|
||||
|
|
@ -220,7 +220,7 @@
|
|||
</div>
|
||||
</div>
|
||||
|
||||
<% cache("sticky-sidebar-#{@article.id}-#{@article.updated_at}-#{(@organization || @user).updated_at}-#{user_signed_in?}", :expires_in => 8.hours) do %>
|
||||
<% cache("sticky-sidebar-#{@article.id}-#{(@organization || @user).updated_at}-#{user_signed_in?}", :expires_in => 18.hours) do %>
|
||||
<%= render "articles/sticky_nav" %>
|
||||
<% end %>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue