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:
Ben Halpern 2019-01-20 12:30:26 -05:00 committed by GitHub
parent 9ccf0a07cb
commit c28e3a4d54
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 %>