From f8e9170824b6a1787418eeeefd6ad6de921437f3 Mon Sep 17 00:00:00 2001 From: Albert Yi Date: Thu, 11 Oct 2018 10:15:45 -0700 Subject: [PATCH] add caching for sitemap.xml --- app/views/static/sitemap.xml.erb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/static/sitemap.xml.erb b/app/views/static/sitemap.xml.erb index 79dfe190b..4c8e1ece5 100644 --- a/app/views/static/sitemap.xml.erb +++ b/app/views/static/sitemap.xml.erb @@ -15,7 +15,7 @@ daily - <%# cache("sitemap", :expires_in => 24.hours) do %> + <% cache("sitemap", :expires_in => 24.hours) do %> <% @popular_search_service.each_search do |tags, count| %> <%= posts_url(tags: tags) %> @@ -37,5 +37,5 @@ <%= post.created_at.to_date %> <% end %> - <%# end %> + <% end %> \ No newline at end of file